<f:attribute name="parameterName" value="parameterValue"/>
</h:commandButton>
In backing bean,
public void callAction(ActionEvent ae){
String paramValue = (String) ae.getComponent().getAttributes().get("parameterName");
System.out.println("Parameter value is :: "+paramValue);
}
The output is -
Parameter value is :: parameterValue
which is in the value attribute of f:attribute tag.
No comments:
Post a Comment