Hello
Jdev 12.2.1.4.0
I have af:deck with 5 children (for this example UI components A,B,C,D,E
also i have 5 af:links , every link shows a different child accordingly when clicking it
and that using a bean. all the above works fine.
lets say I have 5 attribute bindings from the DB
(for this example we will call them A_att,B_att,C_att,D_att,E_att
on EVERY ROW that returns from the DB, those attribute returns true/ false in this way
A B C D E
true false false false false
true true false false false
true true true false false
true true true true false
true true true true true
my goal is to display the deck child according to the LAST true attribute that was received
on every selected row.
I tried to to this with a condition in the deck_child
#{binding.E.inputValue ne false ? 'E' :
binding.D.inputValue ne false ? 'D' :
....
}
it has two issues
I have to click search twice in order for the child to be displayed, otherwise, no child is being displayed at all
it stops working at all when I manually click on one of the links.
for example, if I'll click link #3 , child C will be shown,
then i do another search the displayed child will always be C despite the return attributes value. it always remains #3.
i tried to do this with a bean but didn't succedd there as well (tried to do this on the actionEvent of the search button)
can anyone please help me achieve this (if it's possible at all)
Thank you