Home » Tag Archives: PrimeFaces (page 2)

Tag Archives: PrimeFaces

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 »

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 »

Prime-UI, JAX-RS with Jersey and Gson on Oracle Cloud

primefaces-logo

The Oracle Cloud is around everywhere these days. It had a rough start with Larry denying the need for a cloud for a very (too) long time and some very early announcements and a very bad availability after last year’s Open World nobody seems to be interested anymore. But for me it still has it’s hidden treasures and I believe ...

Read More »

Lightweight Web Application Framework: PrimeFaces (JSF) + Guice + MyBatis (Part 2)

apache-myfaces-logo

In this part, I will continue to demonstrate the integration of JSF, Guice and MyBatis. DBCP connection pool and MYSQL database is used in persistence layer. Take a look at Part 1. Integrate Google Guice with MyBatis In the previous post, we have created a ServletContextListener. Now, we just bind the BasicDataSourceProvider and JdbcTransactionFactory in the contextInitialized method. GuiceContextListener.java package ...

Read More »

Lightweight Web Application: PrimeFaces (JSF) + Guice + MyBatis (Part 1)

apache-myfaces-logo

Recently, my friend asks me how to build a lightweight java web application. Many Java web developer would choose Spring and hibernate to build a traditional web application. However, it may not be lightweight enough. I suggested him try to use Guice and MyBatis to build the application framework. Although Spring is more feature-riched than Guice, I admitted that Guice ...

Read More »

GET / POST with RESTful Client API

jsf-logo

There are many stuff in the internet how to work with RESTful Client API. These are basics. But even though the subject seems to be trivial, there are hurdles, especially for beginners. In this post I will try to summarize my know-how, how I did this in real projects. I usually use Jersey (reference implementation for building RESTful services). See ...

Read More »

PrimeFaces Push with Atmosphere on GlassFish 3.1.2.2

oracle-glassfish-logo

PrimeFaces 3.4 came out three days ago. Beside the usual awesomeness of new and updated components it also includes the new PrimeFaces Push framework. Based on Atmosphere this is providing easy push mechanisms to your applications. Here is how to configure and run it on latest GlassFish 3.1.2.2. Preparations As usual you should have some Java, Maven and GlassFish installed. ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.