-
1. Re: selectOneMenu fails to bind value
bostone Apr 16, 2008 12:16 PM (in response to bostone)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 -
2. Re: selectOneMenu fails to bind value
ilya_shaikovsky Apr 17, 2008 7:50 AM (in response to bostone)https://ajax4jsf.dev.java.net/servlets/ProjectDocumentList?folderID=5320&expandFolder=5320&folderID=0
There our old examples was commited. Just download dropDownBoxes example, change ajax4sjf to RF jars and deploy to tomcat 5.5.
Fully working example. -
3. Re: selectOneMenu fails to bind value
bostone Apr 22, 2008 7:58 PM (in response to bostone)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