Home » Tag Archives: JSF (page 3)

Tag Archives: JSF

How to implement a custom password strength indicator in JSF

jsf-logo

Verifying password strength using JavaScript is a common task. In this post, I will show how to add a password strength indicator to an JSF based web application. The password component in PrimeFaces already has a feedback indicator of the password strength, but it has two major shortcomings: Feedback indicator is not responsive (fix width, not mobile friendly, etc.) Rules ...

Read More »

Primefaces DataTable Lazy Loading with pagination, filtering and sorting using JPA Criteria, @ViewScoped

primefaces-logo

Primefaces datatable lazy pagination works, but I was really frustrated after searching for a full example using Criteria in the web. So I’ve mixed solutions from http://stackoverflow.com/questions/13972193/how-to-query-data-for-primefaces-datatable-with-lazy-loading-and-pagination http://www.primefaces.org/showcase/ui/datatableLazy.jsf http://www.javacodegeeks.com/2012/04/lazy-jsf-primefaces-datatable.html To put all together in a complete example using:     Primefaces 4.0 TomEE 1.6.0+ Criteria JPA With: Filtering Sorting Pagination Using @ViewScoped Managed Beans So let’s go: xhtml snippet <?xml ...

Read More »

Securing a JSF application with Java EE security and JBoss AS 7.x

jsf-logo

A common requirement for enterprise applications is to have all JSF pages protected behind a login page. Sometimes you even want to have protected areas inside the application that are only accessible by users that own a specific role. The Java EE standards come with all the means you need to implement a web application that is protected by some security ...

Read More »

Implementing a custom JSF 2.0 component with maven

apache-maven-logo

Some time ago, I have written my own custom JSF component. But at that point in time, JSF 1.0 was still up to date and the project didn’t use maven as build system. Thus, I always wanted to write a custom JSF2 component with maven. So let’s start: First of all we setup a maven project with two modules. Here ...

Read More »

JSF Tomcat Configuration Example

jsf-logo

JavaServer Faces (JSF) is a web application framework that is intended to simplify development integration of web-based user interfaces. It is used for developing and building server side User Interface Components and using them in a web application. JSF technology is based on the Model-View-Controller (MVC) architecture and simplifies the construction of user interfaces (UI) for server-based applications by using ...

Read More »

Monitor full page, non AJAX, requests to be notified

primefaces-logo

Recently, working on new charts and chart “exporting service” in JSF, I’ve faced a quite common problem. When you execute a long-running task (action), you would like to show a status “Please wait …” dialog on start and close this dialog at the end, when the response arrives. This is not a problem for AJAX requests, but it is problematic ...

Read More »

Multiple dynamic includes with one JSF tag

java-interview-questions-answers

Every JSF developer knows the ui:include and ui:param tags. You can include a facelet (XHTML file) and pass an object, which will be available in the included facelet, as follows:                 <ui:include src="/sections/columns.xhtml"> <ui:param name="columns" value="#{bean.columns}"/> </ui:include> So, you can e.g. use it within a PrimeFaces DataTable with dynamich columns (p:columns) <p:dataTable value="#{bean.entries}" ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close