Latest JSF Interview Questions and Answers
What does JSF-Managed Bean?
Managed bean in JSF act as a Model for UI component, it can be accessed from JSF page. The managed bean consists of the “getter” and “setter” techniques, business logic or even a backing bean.
What Ajax is and how JSF is useful for making AJAX call?
Mention what is the difference between JSF and Struts?
How you can call multiple listeners in JSF?
To call multiple listeners in JSF, there is a JSF tag for “value change listeners” and one for “action listeners” that can be availed to link one or more than one listeners to an element. While using the tag syntax, you will be declaring a class that implements a listener interface. For value change listener tag is <f:valueChangeListener> and for action listeners tag is <f:actionListener>.
What are converter tags in JSF?
JSF has inbuilt convertors to convert or change its UI components data to object used in a managed bean and vice versa. These tags can convert text into date object and can validate the format of the input as well.
List out the converter tags used in JSF?
Converter tags used in JSF are
- convertNumber: It converts a string into a number of desired format
- convertDateTime: It converts a string into a date of desired format
- Custom Converter: It creates a custom converter
What are facelets JSF tags?
Facelets JSF tags are special tags to create common layout for a web application referred as facelet tags. To manage common parts of a multiple pages at one place, facelets tags are used.