Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Select one choice with multiple display attributes

Salman5Mar 20 2014 — edited Mar 23 2014

I drag and drop a view object as Single selection ->   ADF select one choice. In the Edit List Binding Wizard, I select many attributes in the Display attribute section. So the drop down list in the page will have smiler values to the following:

day        A

day        B

day        C

night      X

night      Y

night      Z

these sample is showing in one drop down list in JSF page.

Question is how to get all attribute for the user selected option. I tried two ways, but both of them did not give me all attributes.

Way 1:

I added a valueChangeListener for the list. But when I use the valueChangeEvent it gives me only the first attribute in the selected option. So, it gives me night or day

Way 2:

I used Binding Iterator  to get the current row. But it is give two row only ( day   A ) and ( night    X ) no idea why. I am achieving that by the following code:

DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry() ;
CIteratorBinding someIterator =dcBindings.findIteratorBinding("SomeIteratorID");

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2014
Added on Mar 20 2014
5 comments
945 views