PrimeFaces AccordionPanel – Dynamic Loading + Cache Example

primefaces-thumbnail

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

primefaces-thumbnail

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

JSF-Thumbnail

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 + Scala Integration

JSF-Thumbnail

Scala is a popular programming language for the Java Virtual Machine (JVM). Like Java, it is strongly typed and object-oriented, but it also supports functional programming. Many developers are attracted to Scala because it requires less boilerplate for common constructs, such as properties. Scala does support calling a code in the Java Library from it, so it’s possible to integrate […]

JSF + Groovy Integration

JSF-Thumbnail

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

JSF-Thumbnail

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

JSF-Thumbnail

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

JSF-Thumbnail

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 […]

JSF 2 DataTable Delete Row Example

JSF-Thumbnail

In JSF 2.2 the manipulation of Data Table has been never easier and specifically when it comes to finding out which row the user selected for removal. In JSF 2.2 the removing happened without using of passed parameters or binding the DataTable component into its corresponding Java Object – Like HTMLDataTable – for being manipulated from there. Simply what you have […]

JSF 2 @FlowScoped Example

JSF-Thumbnail

With JSF 2.2, the JavaServer Faces technology allows you to create a set of pages with the new scope FlowScoped, that scope is greater than request scope and less than session scope. The FlowScoped scope depends on the concept of procedure where is declared a well defined entry point and a return value. The entry point should […]