I am trying to use the value of a text area as a parameter to a button action. I figured out the way to pass parameters to the backing bean but I cannot figure out how to use a value of another field as a parameter. The code I have so far is the following:
<h:form>
<p:inputTextarea id="idHere" label="label"/>
<p:commandButton value="Register" action="#{contl.register}">
<f:param name="key" value="????" />
</p:commandButton>
</h:form>
So I am able to get the "????"
at the backing bean but I am wondering how to use the value of the inputTextarea
instead. can I somehow use the ID of the field as a reference?