0 Replies Latest reply on Apr 15, 2009 6:51 AM by jaya kemmannu

    h:selectOneMenu not showing selected value

    jaya kemmannu Newbie
      i have xhtml page in my seam application with <rich:panel>.A column contain <h:selectOneMenu> tag. i want display the values of one column of database table in that listbox how can i do that?

      <ui:define name="body">

          <h:form id="policy" styleClass="edit">

              <rich:panel>
                  <f:facet name="header">#{policyHome.managed ? 'Edit' : 'Add'} Policy</f:facet>


                  <s:decorate id="policyIdField" template="layout/edit.xhtml">
                      <ui:define name="label">Policy id</ui:define>
                      <h:inputText id="policyId"
                             disabled="#{policyHome.managed}"
                             required="true"
                                 size="30"
                            maxlength="30"
                                value="#{policyHome.instance.policyId}" style=" width : 142px;">
                          <a:support event="onblur" reRender="policyIdField" bypassUpdates="true" ajaxSingle="true"/>
                      </h:inputText>
                  </s:decorate>
      <s:decorate id="PolicyTypeIdField" template="layout/edit.xhtml">
                    <ui:define name="label">PolicyTypeID</ui:define>
                     <h:selectOneListbox id="PolicyTypeID"
                       required="true"
                       disabled="#{policytypeHome.managed}"
                      value="#{policytypeHome.}" style=" width : 142px;">
                     
                    
                      </h:selectOneListbox>
                  </s:decorate>
      </rich:panel>