Hi,

I have a table with a tr:inputText field that I have attached a jquery
autocomplete function to.  When the value of this input field changes, I
would like to do a PPR operation that updates corresponding hidden input
and select one choice components in the same row.  The code for the two
columns appears below.

Within the institutionValueChange event code, how would I access the
"constHep" and "constCntry" components to update their values and in the
case of the "constCntry" disable the component based on the new value.

Any points would be greatly appreciate.

Thank you.

Regards,

Graeme.

<tr:column>
     <f:facet name="header">
         <tr:panelHorizontalLayout
             valign="middle">
             <tr:image 
                 source="#{bundle.liveSearch}" 
                 styleClass="searchIco" 
                 shortDesc="#{bundle.iconLiveSearch}" />
             <tr:outputText value="#{bundle.eduInstitutionHeader}" />
         </tr:panelHorizontalLayout>
     </f:facet>
     <tr:panelHorizontalLayout
         valign="middle">
         <tr:inputHidden
             id="constHep"
             value="#{entry.institutionId}"
             partialTriggers="constInst" />
         
         <tr:inputText
             id="constInst"
             value="#{entry.institution}"
             immediate="true"
             autoSubmit="true"
             valueChangeListener="#{entry.institutionValueChange}" >
             <f:validateLength maximum="50" />
         </tr:inputText>
     </tr:panelHorizontalLayout>
 </tr:column>
 
 <tr:column >
     <f:facet name="header">
     </f:facet>
     
     <tr:selectOneChoice
         id="constCntry"
         partialTriggers="constInst"
         value="#{entry.country}" >
         <f:selectItems value="#{applicationSelectItems.countryList}" />
     </tr:selectOneChoice>
 </tr:column>


Graeme Steyn
Information Systems
Information Technology Division
CQUniversity
Tel: +61 7 4930 9256
Fax: +61 7 4930 6814
E-mail: [EMAIL PROTECTED]


This e-mail message is intended only for the use of the individual or
entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable
law. If you are not the intended recipient, any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this communication in error, please notify me
immediately by facsimile or telephone.

Reply via email to