Tuesday, September 6, 2011

SelectOneChoice Selected value in attribute without loop

1) Go to page definition
2) Create Employees Iterator from employees view object.
3) In bindings create a list for employees first name list as in screen shot (does not update base datasource).

4)On jsf page drag selectone choice from components section and in popup give binding for the list that you created in step 3 also set autosubmit property to true for this dropdown.

5) Now in page definition create a

6) Create one output textfield in jsf page and give its value as #{bindings.FirstName.inputValue} and set partial trigger property to the dropdown id
n attributebinding with the same iterator.