javainnovations.blogspot.com
Java Solutions: September 2014
http://javainnovations.blogspot.com/2014_09_01_archive.html
Friday, September 5, 2014. New and Updated JSRs in JEE 7. Java EE 7 contains 14 new and updated JSRs. Java specifications are available at. Http:/ www.jcp.org. JSR 338: Java Persistence API 2.1. JSR 340: Java Servlet 3.1. JSR 341: Expression Language 3.0. JSR 343: Java Message Service 2.0. JSR 344: JavaServer Faces 2.2. JSR 345: Enterprise JavaBeans 3.2. JSR 349: Bean Validation 1.1. Posted by amer sohail. Subscribe to: Posts (Atom). View my complete profile. Google Services Authentication Using OAuth2.
javainnovations.blogspot.com
Java Solutions: Google Services Authentication Using OAuth2
http://javainnovations.blogspot.com/2012/11/google-services-authentication-using.html
Wednesday, November 7, 2012. Google Services Authentication Using OAuth2. Google APIs use the OAuth 2.0 protocol for Authentication and authorization. Google supports several OAuth2.0 flows that cover common web server, JavaScript, device, installed application, and server to server scenarios. Today we will discuss how to use OAuth 2.0 for installed application. In a very first step, you will have to register your application with google account. Here are the steps to register application:. Reference pag...
javainnovations.blogspot.com
Java Solutions: July 2013
http://javainnovations.blogspot.com/2013_07_01_archive.html
Tuesday, July 16, 2013. Programmatically Accessing values from Resource Bundle. Public String getResourceValue(String key,String parameters[]){ FacesContext context = FacesContext.getCurrentInstance(); ResourceBundle rb =context.getApplication().getResourceBundle(context,"resource bundle name"); String value = rb.getValue("key") return MessageFormat.format(value,parameters);. Posted by amer sohail. Thursday, July 4, 2013. Collection of basic types. Posted by amer sohail. Subscribe to: Posts (Atom). JSF h...
javainnovations.blogspot.com
Java Solutions: JPA Reference Card
http://javainnovations.blogspot.com/2013/07/jpa-reference-card.html
Thursday, July 4, 2013. Collection of basic types. Use @ElementCollection annotation along with @CollectionTable (if you want to control the name of table), and @Column (name of column to represent value of simple type). Posted by amer sohail. Subscribe to: Post Comments (Atom). View my complete profile. Google Services Authentication Using OAuth2. Google APIs use the OAuth 2.0 protocol for Authentication and authorization. Google supports several OAuth2.0 flows that cover common web s. Import java.t...
javainnovations.blogspot.com
Java Solutions: JSF 2 Tips & Techniques - JSF Messages, Resource Bundle, and Validation Messages
http://javainnovations.blogspot.com/2013/04/jsf-2-tips-techniques-jsf-messages.html
Tuesday, April 9, 2013. JSF 2 Tips and Techniques - JSF Messages, Resource Bundle, and Validation Messages. Overriding default JSF error / warning Messages. Message bundle is used to override jsf's default error / warning messages. Declare message-bundle in your faces-config.xml and write new messages for default keys. You can define list of JSF defined messages from JSF specification under "Localized Application Messages". Localized Resource bundle is defined with resource-bundle tag inside faces-config...
javainnovations.blogspot.com
Java Solutions: Regular Expressions Reference Card
http://javainnovations.blogspot.com/2014/03/regular-expressions-reference-card.html
Thursday, March 27, 2014. Regular Expressions Reference Card. Letters Inside Square Brackets. Letters outside square brackets. All characters from a to z. All characters from A to A. Not characters from a-z. Not characters from a-z and from A-Z. Carret outside the square bracket shows that following character should be matched beginning of the line. O - oooohhhh OOOOhhh oooOOOOHHHH. Will match to first character only and that is "o". Will match end of the line. For or. A a is same as [aA]. Matches W or w.
javainnovations.blogspot.com
Java Solutions: JSF Reference Card
http://javainnovations.blogspot.com/2013/07/jsf-reference-card.html
Tuesday, July 16, 2013. Programmatically Accessing values from Resource Bundle. Public String getResourceValue(String key,String parameters[]){ FacesContext context = FacesContext.getCurrentInstance(); ResourceBundle rb =context.getApplication().getResourceBundle(context,"resource bundle name"); String value = rb.getValue("key") return MessageFormat.format(value,parameters);. Posted by amer sohail. Subscribe to: Post Comments (Atom). View my complete profile. Google Services Authentication Using OAuth2.
javainnovations.blogspot.com
Java Solutions: March 2014
http://javainnovations.blogspot.com/2014_03_01_archive.html
Thursday, March 27, 2014. Regular Expressions Reference Card. Letters Inside Square Brackets. Letters outside square brackets. All characters from a to z. All characters from A to A. Not characters from a-z. Not characters from a-z and from A-Z. Carret outside the square bracket shows that following character should be matched beginning of the line. O - oooohhhh OOOOhhh oooOOOOHHHH. Will match to first character only and that is "o". Will match end of the line. For or. A a is same as [aA]. Matches W or w.
javainnovations.blogspot.com
Java Solutions: October 2012
http://javainnovations.blogspot.com/2012_10_01_archive.html
Tuesday, October 30, 2012. Registering Custom JSF Renderer. I am overriding a renderer for input text component of Prime faces. This renderer will not do anything special and will just print a statement on console. Here are the steps to follow:. Public class MyInputTextRenderer extends InputTextRenderer{. Protected void encodeMarkup(FacesContext context, InputText inputText) throws IOException {. System.out.println("encodemarkup");. SuperencodeMarkup(context, inputText);. Component-family and renderer-ty...