How to update a h:inputHidden with p:commandButton?
问题 I writed an ajax request for any data. But the data don't work with h:inputHidden. I think it's a bug of Primefaces. But I don't know how to get the data now. code: <h:inputHidden id="buttonData" value="#{buttonDataBean.buttonData}" /> ... <p:commandButton id="getData" action="#{buttonAction.getButtonData}" update="buttonData" /> When I click the commandButton, the value of don't work. But if I use the h:outputText, it worked. My requirement: Before click the commandButton, I have create any