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


_________________________________________________________________
Juega y gana, tenemos 3 Xbox a la semana.
http://club.prodigymsn.com/ 

Reply via email to