Af:forEach saving value to variable

Advertisement

Af:forEach saving value to variable
Hello,
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 10.1.3.1, ADF BC, ADF Faces
Repaly
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.
Regards,
~ Simon
Read More: The other 3 answers