dynamically created form: decode methode called twice
posted 6 years ago
I'm trying to write a client containing a dynamically created form. The user have to select a web service process out of a selectOneMenu. Depending on this selection the form must be created. Selecting the web service and the following update of the form is ajax based. The form in my xhtml page contains a binding and a preRenderComponentEvent:
In the loadForm() methode the form, depending on the selected web service process will be created:
After clicking the created executeButton the listener (executeProcess()) will be called to handle the submitted values.
The problem is, that the decode methode of the form elements will be called twice in the apply request values phase!