JSF - Facelets Tags
Facelets JSF Tags
JSF provides special tags to create common layout for a web application called facelets tags. These tags gives flexibility to manage common parts of a multiple pages at one place.For these tags you need to use the following namespaces of URI in html node.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" >Following are important Facelets Tags in JSF 2.0:
S.N. | Tag & Description |
---|---|
1 | Templates We'll demonstrate how to use templates using following tags
|
2 | Parameters We'll demonstrate how to pass parameters to a template file using following tag
|
3 | Custom We'll demonstrate how to create custom tags. |
4 | Remove We'll demonstrate capability to remove JSF code from generated HTML page. |
JSF - Convertor Tags
JSF Convertor Tags
JSF provides inbuilt convertors to convert its UI component's data to object used in a managed bean and vice versa.For example, these tags can convert a text into date object and can validate the format of input as well.For these tags you need to use the following namespaces of URI in html node.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" >Following are important Convertor Tags in JSF 2.0:
S.N. | Tag & Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | f:convertNumber Converts a String into a Number of desired format | ||||||||||||||||||||||||
2 | f:convertDateTime Converts a String into a Date of desired format | ||||||||||||||||||||||||
Custom Convertor Creating a custom convertor JSF Validator TagsJSF provides inbuilt validators to validate its UI components. These tags can validates length of field, type of input which can be a custom object.For these tags you need to use the following namespaces of URI in html node. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" >Following are important Validator Tags in JSF 2.0:
|
thank you.
ReplyDeletepython3 tutorial
JSF tutorial