How to dynamic add f:param to h:commandButton with JSF?
I encountered some problem creating a reusable button, trying to dynamically add one or more f:param within the h:commandButton tag. I don’t know what I’m missing, btw I’m using the 2.1 version.
I found out that this can be made by a backing bean somehow, but I’m not using one just for this component, instead the one I’m using refers to the page (and many others that are under the same directory), thus I can’t add a var inside it (if it’s right what I’m telling) just for the following use case.