Af:forEach saving value to variable


Af:forEach saving value to variable
I have a simple three-level tree binding which I use on .jpsx to build basic table(afh:tableLayout) using af:forEach loops.
How am I able to save value from row to global variable(sessionScope, hidden or something) which I can use when rendering(or not) next record? I'm trying to group these tables using that value.
Jdev, ADF BC, ADF Faces
Hello Rommel,
Try using <f:selectItems/> instead and as suggested already, create the list only once or cache it for some times instead of requesting the database over and over.
~ Simon
Read More: The other 3 answers