Home » Tag Archives: JSF (page 2)

Tag Archives: JSF

Programmatically caching PrimeFaces charts via OmniFaces Cache component

In this post, you will see how to combine PrimeFaces and OmniFaces to obtain cacheable charts. In order to keep the things simple, we will use a PrimeFaces Line Chart. For this kind of chart we can use <p:chart/> tag in page and a simple managed bean. So, in page we can have: <p:chart id="someChartId" type="line" model="#{chartView.lineModel}" style="height:300px;width:600px;"/> The ChartView ...

Read More »

JSF 2.2 Create a custom Hello World component in 30 seconds

Let’s jump directly to the cool stuff and say that in JSF 2.0 a custom component was made available to page authors by configuring it in a Facelet tag library (*taglib.xml). Moreover, when the component is mapped in a JAR, a special entry in web.xml is needed to point to the *taglib.xml file. As of JSF 2.2, we don’t need ...

Read More »

JSF: Validation at the right phase (understanding the life cycle)

Hi everyone! Although the title emphasises the word validation, this article is actually about the JSF life cycle. That’s because I believe that one of the easiest ways to truly understand the life cycle is by making something we do all the time: validating user input. In general, understanding the so called JSF Life Cycle is what sets apart junior ...

Read More »

Java EE7 and Maven project for newbies – part 8

java-interview-questions-answers

Part #1, Part #2, Part #3, Part #4, Part #5, Part #6, Part #7  Part #8 It’s been a long time since my last post, for this series of  tutorials. Its time to resume and add new features on our simple project. As I have mentioned in previous posts, this series of posts is targeting mostly Maven and JavaEE7 newcomers, ...

Read More »

RESTful Charts with JAX-RS and PrimeFaces

Oftentimes, it is useful to utilize a chart for providing a visual representation of your data. PrimeFaces supplies charting solutions that make it easy to add visual representations of your data into web and mobile applications. If we couple the use of PrimeFaces charting components with RESTful web service data, we can create custom charts that scale well for both ...

Read More »

A JSF List Example

This is an example list application built using JSF 2.0 (JavaServer Faces). The app is a list of todo (to do) items. This app has functions to add, edit or delete items in the list. The todo item has name and description properties. The completed app’s JSF page has:             A todo list implemented using ...

Read More »