3 Replies Latest reply on Oct 26, 2008 6:27 PM by nbelaevski

    How to render only dropdown in a panel

    valatharv

      I need to simply update 2nd. dropdown on the basis of 1st.

      If I use "reRender=reagentPanel" in above a:support tag it works but it renders the other form fields in the panel, I need only "h:selectOneMenu" to be rendered...

      Please suggest

      <rich:panel>
      <a:outputPanel id="myPanel1">
      <s:decorate id="masterItems" template="layout/edit.xhtml">
      <ui:define name="label">Quantation Type : </ui:define>
      <h:selectOneMenu value="#{itemList.masterValue}" required="true">
      <s:selectItems var="v_item" value="#{itemList.masterItems}" label="#{v_item}" noSelectionLabel="select quantation ..."/>
      <a:support limitToList="true" ignoreDupResponses="true" event="onchange" reRender="itemList" ajaxSingle="true" bypassUpdates="false"></a:support>
      </h:selectOneMenu>
      </s:decorate>
      </a:outputPanel>
      </rich:panel>

      <rich:panel id="reagentPanel">//If I use reRender=reagentPanel in above a:support tag it works
      <s:decorate template="layout/edit.xhtml">
      <h:inputText id="pname1" required="true" value="#{info.pname}"/>
      </s:decorate>
      ... other fields
      <ui:define name="label">Colors : </ui:define>
      <h:selectOneMenu id="itemList" value="#{itemList.detailValue}">
      <s:selectItems var="v_item" value="#{itemList.detailItems}" label="#{v_item}" noSelectionLabel="select color ..."/>
      </h:selectOneMenu>

      </rich:panel>