CodesJava

Easy learning with example program codes

is it possible to have more than one faces configuration file?

Yes. We can define the list of the configuration files in the web.xml. <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config-navigation.xml,/WEB-INF/faces-beans.xml</param-value> </context-param> Related topics What is the significance of @ManagedProperty annotation? How… Read More
Posted in JSF   

How to terminate the session in JSF?

public String logout() { FacesContext fc = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fc.getExternalContext().getSession(false); session.invalidate(); return "loginPage"; } Related topics What is the significance of @ManagedProperty annotation? How… Read More
Posted in JSF   

Jsf composite components tutorial

JSF provides the facility to create reusable custom components also known as composite components. Below are the steps to create composite components in JSF. Steps to create… Read More

Jsf datatable tutorial with examples

JSF h:dataTable tag is used to render and format HTML table element. It is a rich control tag which can iterate collection or array of values to… Read More


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap