Hi,
I think what happens is that when the components that depend on
'statusDiagnosis' are rerendered, they lose their value because your backing
bean wasn't updated with the values from the form. So PPR works fine. I'm not
sure, but I think this is cause by the immediate=true on the 'statusDiagnosis'
component.
Maybe you can check the values on your backing bean to see if they were updated
or not.
Regards,
Freek
________________________________
From: jorge miguel [mailto:[EMAIL PROTECTED]
Sent: 15 augustus 2008 1:43
To: [email protected]
Subject: PPR problem, rendering specific section of the page
hi.
im having some problems with trinidad, im trying to render an specific
section of my page but looks like all the page is re-rendered because i lose
the values previously typed. this is the code
<tr:selectOneChoice id="statusDiagnosis"
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.statusDiagnosis}"
autoSubmit="true" immediate="true"
label="#{tbCaseInformationActionHandler.tbDiseaseInfo.descriptionStatusDiagnosis}:"
>
<f:selectItems
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.statusDiagnosisOptions}"/>
</tr:selectOneChoice>
<tr:inputDate
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.deathDate}"
partialTriggers="statusDiagnosis"
disabled="#{not(tbCaseInformationActionHandler.tbDiseaseInfo.statusDiagnosis eq
'ATD')}"
label="If Dead, death date:">
<tr:convertDateTime pattern="MM/dd/yyyy"
secondaryPattern="MMddyyyy" />
</tr:inputDate>
<tr:selectOneChoice id="tbCauseOfDeath"
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.tbCauseOfDeath}"
partialTriggers="statusDiagnosis"
disabled="#{not(tbCaseInformationActionHandler.tbDiseaseInfo.statusDiagnosis eq
'ATD')}"
label="#{tbCaseInformationActionHandler.tbDiseaseInfo.descriptionTbCauseOfDeath}:">
<f:selectItems
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.tbCauseOfDeathOptions}"/>
</tr:selectOneChoice>
<tr:selectOneChoice id="previousActiveTb" autoSubmit="true"
immediate="true"
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.previousActiveTb}"
label="#{tbCaseInformationActionHandler.tbDiseaseInfo.descriptionPreviousActiveTb}:"
>
<f:selectItems
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.previousActiveTbOptions}"/>
</tr:selectOneChoice>
<tr:inputText id="previousDiagnosisYear"
partialTriggers="previousActiveTb"
disabled="#{not
(tbCaseInformationActionHandler.tbDiseaseInfo.previousActiveTb eq 'Y')}"
value="#{tbCaseInformationActionHandler.tbDiseaseInfo.previousDiagnosisYear}"
label="#{tbCaseInformationActionHandler.tbDiseaseInfo.descriptionPreviousDiagnosisYear}:"
maximumLength ="4">
<tr:convertNumber pattern="#"/>
so like all can see. when i select and specific option from the first
"selectOneChoise" the trigger enable the inputDate and the third
selectOneChoise the problem come when i select and option from my fourth
selectOnechoise this one enable the inputText field and qorks fine but i lose
the values from the inputDate and the third selectOneChoise.
i hope is clear enough and someone can help me to solve it (sorry for
the English its not my first lenguage)
tnx in advance for any help
________________________________
Conoce el perfil completo de todos tus amigos de Windows Live Messenger
justo aquĆ: Windows Live Spaces <http://home.services.spaces.live.com/>
================================================
The information transmitted via this e-mail is intended only for the person or
entity to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.