1 Reply Latest reply on May 15, 2009 12:12 PM by Ben Catherall

    selectOneMenu  problem

    jaya kemmannu Newbie
      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}"
                                             label="#{clm.customerId}" noSelectionLabel="please select claim Id"/>
                                             <a:support event="onchange" reRender="policyId"  bypassUpdates="false"/>
      <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}"
                                     label="#{clm.policyId}" noSelectionLabel="please select policy Id"/>

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