Now, I tried a few other arrangements. If I remove ajaxSingle="true" from the first box, then not surprisingly Status property in the bound model object will be updated with a current value of the second select (not what I need)
If I have ajaxSingle="true" then again the select property will be set to null.
Then I tried to put first select inside the a4j:region in which case I get the right value for the property, however second select will not be refreshed.
Can anyone help with this? I'm really banging my head at this point
There our old examples was commited. Just download dropDownBoxes example, change ajax4sjf to RF jars and deploy to tomcat 5.5.
Fully working example.
Ilya, thanks a lot,
This example has some limitations. First the managed bean (Bean) is defined in the session scope. The instance it's placed into request scope summary button stops working. Second - I changed the code to use complex Vehicle object and converter instead of simply mapping form fields to bunch of unrelated lists. That broke the code further.
I'm wondering if you (or anyone else) can look at the modified code and recommend the solution. Basically, to reiterate, my client's requirement is to stay within request scope and map form fields directly to model objects rather than primitive data ans lists
The modified example can be downloaded from here http://www.box.net/shared/q5dzl5f0o0