This tag is used to set the parameter to the enclosing component. This tag is helpful in the case of creating the compound message. Its value attribute can be set using EL to get the current value from the backing bean property. Suppose you are using outputFormat tag to create compound message where these param values can be used.
Code Description : In the code below {0}and {1}are replaced by the param values specified within outputFormat tag. param values are being taken from properties of backing bean "MessageBean".
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> |
Output Rendered :
Html Source Code :
|
This tag contains some attributes that are explained below :
binding : This attribute takes value binding expression to link component to the banking bean property.
id : This is used to uniquely identify the component.
name : This is used to set the name of the parameter.
value : This is used to set the value of the parameter.
0 comments:
Post a Comment