I am trying Trinidad PPR component facility to create dependant input
fields.
My objective is to create a selectOneChoice that its data is updated
when a previous selectOneChoice value is selected.
The sample code is at the bottom.
The problem is that the first time you choose the first select, the
second one is updated correctly.
But when you try it once again the second select value is updated, in
the server side, but the previous value is also submitted, so that, no
change is made.
My question is, Is that possible?
In component demo aplications there is no example on using PPR for
dependant input components.
Thanks in advance.
Esteve
<tr:selectOneChoice id="selOne"
label="Label 1"
autoSubmit="true"
unselectedLabel="None"
valueChangeListener="#{helloWorldBacking.label1Changed}">
<tr:selectItem label="First" value="1" />
<tr:selectItem label="Second" value="2" />
<tr:selectItem label="Third" value="3" />
</tr:selectOneChoice>
<tr:outputText partialTriggers="selOne"
value="The Value is: #{helloWorldBacking.label2Value}" />
<tr:selectOneChoice id="selTwo"
label="Label 2"
partialTriggers="selOne"
unselectedLabel="None"
immediate="true"
value="#{helloWorldBacking.label2Value}">
<tr:selectItem label="First" value="1" />
<tr:selectItem label="Second" value="2" />
<tr:selectItem label="Third" value="3" />
</tr:selectOneChoice>
__________________________________________________________________________
Aquest missatge electronic esta dirigit unicament a les adreces indicades. El
seu caracter confidencial, personal i intransferible esta protegit legalment.
Qualsevol revelacio, us o reenviament no autoritzat, total o parcial, esta
prohibit. Si ha rebut aquest missatge per equivocacio, notifiqui-ho
immediatament a la persona que l'ha enviat i esborri el missatge original
juntament amb els seus fitxers annexos sense llegir-lo ni gravar-lo.
TMB (Transports Metropolitans de Barcelona)
Informacio interactiva de transport: www.tmb.net