how to use f:attribute

the f:attribute tag is very useful when you want to pass an attributer inside a commandButton tag.
It plays in this way:

<h:commandButton id="bottoneForm"
actionListener="#{managebBean.actionListenerFunction}">
<f:attribute name="attributeName" value="attributeValue" >
</f:attribute>
</h:commandButton>


For to read it in the called actionListener function of the managebBean:

public void actionListenerFunction(ActionEvent e){
Object valueOfAttribute = e.getComponent().getAttributes().get("attributeName");
}


That's all Folks!