Hi,
I have been working on this problem for hours and cannot find an answer in this forum or any other google search.
I have a form that contains 2 dropdowns populated from database tables, when an option is selected in the first one (system) it successfully triggers the rendering and populating of the second (facility). Great. But...when the user selects from the second dropdown, the bean's property (ie selectedFac) is always null. I need the 2 values, system and facility, to then find the person in the database.
Using
JSF 2, glassfish 3. No richfaces etc
Here's the JSF:
When I view the html source I see the first list has an option selected but not the second:
I know the code is OK for the second dropdown because when I remove the first one (and add some hardcoding in the bean for the "system" value) the property is set fine and I can see the option selected on the HTML source.
Has anyone come accross this before? Any ideas or suggestions would be appreciated.
D.Plum