I have a control button (Cancel button) that I want to bypass the check of some components on my page. When I have immediate = "true" set on my command button, the update attribute does not work. By "non-working" I mean that the values โโon: centerForm: p_definition do not correspond to reset by what they should be. If I select an item from the drop-down list or enter data in the input text, the information should disappear when you click cancel. Setting immediate = false or removing it completely will reset the fields as expected. Here is the definition of the command element that I'm having problems with.
<p:commandButton value="Cancel" style="float: right;" immediate="true" actionListener="#{manageBomPropHandler.doCancel()}" update=":centerForm:p_definition"/>
Is this expected behavior from immediate = "true"? If so, how did you get around this for the cancel buttons?
SteveS
source share