Archive for category JSF

Removing border from primefaces <p:layout>

Primefaces provides an excellent component <p:layout> to lay structure your website, but it has an annoying border which makes everything look cluttered. Here is how you can get rid of that (at least for now) I know it is bad, but i am no CSS guru! Just figured out that this works! Advertisements

, ,

1 Comment

Downloading file in JSF 2

Here is a simple sample code to downloads a file in jsf 2.x. Inside your Form Bean you write a method that basically either reads a file from file system or creates it dynamically and writes the file to HttpServletResponse instance obtained using FacesContext.getCurrentInstance().getExternalContext().getResponse();


JSF Life Cycle

The lifecycle of a JSF application starts with user making a request for a web page and server responding with the page. JSF specification defines six distinct life cycle phases: Restore or Build Application View Apply Request Values Process Conversions and Validations Update Model Values Invoke Application logic Render Response The Restore or Build View […]


Leave a comment