At the time of dialogReturn event, I checked because it is not updated even if I specify a component with update

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

At the time of dialogReturn event, I checked because it is not updated even if I specify a component with update
Even if I write the setting of STRICT_QUOTE_ESCAPING in CATALINA_OPTS in tomcat8.5, it is not reflected.
If VIEW (template) is not reloaded by changing RACK_ENV at the time of development with Padrino, enable reload_templates.
Isn't it reflected even if the content is updated in Rails?
A story that suffered from a space that does not disappear even if trimmed with Java The cause is BOM
What to do when is invalid because it does not start with a'-'
Even if I want to convert the contents of a data object to JSON in Java, there is a circular reference ...
I checked the number of taxis with Ruby
I tried to create a log reproduction script at the time of apt install
[Solution] A memo that I had a hard time because the format of sinatra-validation changed
[JavaScript] I can't get the response body at the time of error with axios (ajax)
The end of catastrophic programming # 03 "Comparison of integers, if" a> b ", assume that it is" a --b> 0 ""
If hash [: a] [: b] [: c] = 0 in Ruby, I want you to extend it recursively even if the key does not exist.