By default JSF using GMT timezone to convert the date into display format. Here is a simple solution where you can provide your custom date time converter. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF 1) Write a new custom converter by extending existing DateTimeConverter class. Bind your new …
JSF
Life Cycle of JSF Components
Restore View The JSF servlet builds the view of the requested page as a component tree that contains the information associated with all components. It also saves the view in a FacesContext instance, thereby making it possible to repopulate the page if necessary—for example, when the user doesn’t fill out a form as required. If …
New Features in JSF 2.0
JSF 2.0 proposal has been posted on March 2007 and planned for the release in last quarter of 2008. It will be shipped with JEE 6.0 release. Looking into the features lits of the JSF 2.0, it is added lots of interesting features in the list and also they are aiming to attract more new developers …
Implement Internationalization and Localization in JSF
Internationalization and Localization are important features for an web based application. Internationalization is implementing the features in your application to support multiple languages. Localization is creating text in a specific language that is presented through an internationalized application also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF The following example …
Use rich:datascroller for rich:dataTable pagination
rich:datascroller and rich:dataTable rich:dataTable tag is the RichFaces version for datatable component which has few extra features on look and feel.One of the difficulty JSF developers is creating good pagination for the data dsiplayed using rich:datatable. To resole this problem, RichFaces tags library provides rich:datascroller component which can display the automatic paginations based on data …
Use a4j:status to display status of the request
a4j:support and a4j:status When there is a request to the server, the client have to wait untill he gets the response. It will be nice if you give status of the server request processing. use a4j:status tag in the RichFaces to implement this feature in your webpages. In this example this tag is used with …
a4j:support – How to use action attribute?
a4j:support and action attribute This example program demonstrates how to use action attribute to update the server values and display in the screen. In this example user inputs are passed to update method and processed. The values are updated in the h:panelGrid component. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases …
a4j:support – Simple Example on onkeyup event
a4j:support This example program demonstrates how to get started with a4j:support tag in the RiachFaces tag libraray. This is part of Ajax4jsf libraray. But, from RiachFaces 3.0, Ajax4jsf is merged with RichFaces tag libraray. a4j:support is used inside any component to provide ajax support on that particular field. also read: Introduction to JSF JSF Interview …