Ryland
Platinum Member
This should be simple. I have a h:inputText entry box which I want to be able to pass its value back to my java code when someone presses a p:commandButton but I cant figure out how to do this. f:Attributes either pass the text entered into their value portion OR I get back null.
Code:
<h:outputLabel for="name2" value="Name:"/>
<p:inputText id="name2" name="name2" required="true"/>
<p:commandButton value="Submit" actionListener="#{configBean.addNewConfigProperty}" onclick="addRowDialog.hide()" update="config">
<f:attribute name="name1" value="#{name2}"/>
</p:commandButton>