dilemma - af:iterator or forEach and dynamic components: loosing the value.
437765Jan 25 2007 — edited Mar 27 2012Hello:
I'm using jdev 10.1.3
I'm trying to create dynamic af:inputTextField, af:selectOneChoice, and other components inside a loop (iterator or forEach).
The component type, is rendered with some condition in the object retrieved from the loop. the problem is:
1.- If I use the forEach, I am not able to create the dynamic list of values using a bean, sending the "description" attribute from the item retrieved in the loop, because It comes null.
2.- If I use the iterator, I can do that, and the list in the selectOneChoice is populated, but when I try to get the value (or submittedValue) in a bean, from the af:inputText generated, it always came null (this does not happen with the forEach).
3.- in resume: I am able to get the value in the input text on a bean, but my LovBean does nothing with the selectOneChoice.
4.- with the iterator I can populate the lovlist using a bean, but I can not get the submitted values in the textfields.
please help.
Message was edited by:
alopez
(sorry, I press the enter button and I only type three words, :P)