1 Reply Latest reply on May 15, 2009 12:12 PM by bravocharlie.seam.signup.benny.me.uk

    selectOneMenu  problem

      Hi i am confused with the tag <h:selectOneMenu> tad in my seam application...
        I have an xhtml file where i have 2 selectOneMenu tag as shown below..

      <s:decorate id="customerIdField" template="layout/edit.xhtml">
         <ui:define name="label">customer ID</ui:define>
            <a:region> <h:selectOneMenu id="customerId"                          required="true"
      value="#{claimHome.instance.customer}" >
         <s:convertEntity />
            <s:selectItems value="#{customerList.resultList}"
                                             var="clm"
                                             label="#{clm.customerId}" noSelectionLabel="please select claim Id"/>
                                             <a:support event="onchange" reRender="policyId"  bypassUpdates="false"/>
        </h:selectOneMenu>
        </a:region>
      </s:decorate> 
                       
      <s:decorate id="policyIdField" template="layout/edit.xhtml">
             <ui:define name="label">Policy Id</ui:define>
      <h:selectOneMenu id="policyId" required="true"
      value="#{claimHome.instance.policy}" style=" width : 143px;">
         <s:convertEntity />
      <s:selectItems value="#{policyList.resultList}"
                                             var="clm"
                                     label="#{clm.policyId}" noSelectionLabel="please select policy Id"/>
               </h:selectOneMenu>
               </s:decorate> 

      my problem is when i select any CustomerId from the dropdownlist,i shud be able to view policyID associated with that customerId in another