I want to update the items on the screen with the values returned from the dialog opened by the dialog framework, so I wrote as follows.
<p:ajax event="dialogReturn" listener="#{hoge.fuga}" process="comp" update="comp" />
There is a component with id "comp" on the same screen, and the value of "comp" is changed in the method "hoge.fuga".
However, the value is not updated in this description. The cause is the order of execution listener post by process update It becomes the order of. It looks like it hasn't changed because the value updated by listener is overwritten by the process with the value before the change.
If you want to use the value of comp in hoge.fuga, you can describe comp in process such as the button that calls the dialog.
I think the order is process, listener, update ... There is no point in describing process in p: ajax, which is a strange specification.
Recommended Posts