This tutorial explains the event change listeners used along with the AccordionPanel component. The onTabChange is called before a tab is displayed to the user and onTabShow is called after displayed to the user. Both receive container element of the tab to show as a parameter. At the other hand tabChange is the one and only ajax behavior event for accordion …
PrimeFaces AccordionPanel – Dynamic Loading + Cache Example
If you’ve seen the primefaces accordion panel component, you are most probably asking about what’s the main important features that provided for the developer for making the component more useful. One of the feature is lazy loading of the content inside each tab. AccordionPanel supports lazy loading of tab content, when dynamic attribute is set true, …
Primefaces AccordionPanel Example
AccordionPanel is a container component that displays content in stacked format. That component has associated with a type of org.primefaces.component.AccordionPanel Java Class. This tutorial explains how to use the Primefaces AccordionPanel with simple example. If you have any questions, please write it in the comments section. 1. AccordionPanel Tag Info 2. AccordionPanel Attributes 3. Managed Bean AccordionPanel.java 4. …
JSF Custom Error Pages
When you run an application in the development project stage and you encounter an error, you get an error message in an undesirable form. You probably don’t want your users to see that message in such that ugly way. To substitute a better error page, use error-page tag in the web.xml file, in that you can specify either …
JSF + Groovy Integration
Groovy is another popular programming language for the Java Virtual Machine. Groovy is dynamically typed, and groovy code can be more concise than the equivalent Java because you can omit types of variables and parameters. Almost any Java code is legal groovy, that’s make it simple and easier for getting started using it. Ultimately, using the Groovy …
JSF SystemEventListener – UIComponent Events Example
You’ve already examined the events that could be fired from both of Application and UIViewRoot. But those aren’t only the events that might be handled. The UIComponent – UIComponent is the base class for all user interface components in JavaServer Faces. The set of UIComponent instances associated with a particular request and response are organized into a component tree under …
JSF 2 SystemEventListener – UIViewRoot Events Example
As mentioned previously in the introduction of the JSF2 System Events – Application Events, there are many kinds of System events that could be listening for. UIViewRoot component – is the UIComponent that represents the root of the UIComponent tree – also does considered one of the component that has fired a system event. UIViewRoot has fired three main types …
JSF 2 SystemEventListener Example
The System Events are normally specified in the JavaServer Faces Specification 2.2 under “System Events” Subject. This concept expands on the idea of lifecycle PhaseEvents. With the PhaseEvents, it is possible to have an application scoped PhaseListeners that are given the opportunity to act on the system before and after each phase in the lifecycle. System events provide a …