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

    How to render only dropdown in a panel

    Val Sw Expert

      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

      <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>

      <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}"/>
      ... 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 ..."/>