Introduction This article explains with basic example on how to implement the f:phaseListener in JSF. This tag is useful for registering any particular component to the Life Cycle of the phases. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This following program provides very basic example for using f:phaseListener …
JSF
How to implement ActionListener (f:actionListener) in JSF?
Introduction This article explains how to implement the ActionListener class in the JSF core tag library. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF An ActionListener is an event handler interface for a class that can respond to user events in your JSF page. The body content of this …
f:convertDateTime tag in JSF
Introduction f:convertDateTime is used for validating the date input. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF If the user enters any invlid input, it will throw the error message to the screen. Also it allows the user to specify the apttern of date format using the ‘pattern’ attribute. …
h:outputFormat tag in JSF
Introduction The outputFormat tag renders parameterized text and allows you to customize the appearance of this text using CSS styles. Parameterized text is compound text containing placeholder values to be replaced by actual values at rendering time. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF JSP File (index.jsp) JavaBean …
f:convertNumber Tag in JSF
What is the use? This tag is used to register the NumberConverter instance on the enclosing component. also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF This class is responsible to convert String to java.util.Number object and vice-versa. JSP file JSF Bean faces-config.xml Description currencyCode : In this attribute ISO …
How to initialize Map property in Managed Mean?
Map property in Managed Mean JSF Managed Beans can initialize its Map properties in the faces-config.xml. There is a property in the faces-config.xml as map-entries. This can be used for initializing the values and can be accessed directly through the Managed Beans in any JSP pages. also read: Introduction to JSF JSF Interview Questions Request …
Display error messages in JSF [ h:messages ] – part 1
Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 errorMessage.jsp also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF ErrorMessageBean.java faces-config.xml errorMessageResult.jsp
h:selectOneMenu – Java Server Faces (JSF)
Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 selectOneMenu.jsp also read: Introduction to JSF JSF Interview Questions Request Processing Lifecycle phases in JSF SelectOneMenuBean.java faces-config.xml selectOneMenuResult.jsp