0 Replies Latest reply on Dec 2, 2008 11:55 AM by Mita Bhushan

    JSF reRender doesn't work

    Mita Bhushan Newbie

      I would like to show listPrice field only when the status field is set to 'Approved'

      reRender is not working.
      listPrice field does not appear when I pick approved form the select box.
      I only see the listPrice field after I submit the form and get back into it

      <s:decorate id="statusDecoration" template="layout/edit.xhtml">
      
       <ui:define name="label">Status</ui:define>
       <h:selectOneMenu id="status" value="#{inquireHome.instance.status}" >
       <s:selectItems value="#{requestStatusList}" var="requestStatus"
       label="#{requestStatus.requestStatus}"
       itemValue="#{requestStatus.requestStatus}"
       immediate="true"
       />
       <a:support event="onblur" reRender="listPriceDecoration" bypassUpdates="true" ajaxSingle="true"/>
       </h:selectOneMenu>
      
       </s:decorate>
      
       <s:decorate id="listPriceDecoration" template="layout/edit.xhtml" rendered="#{inquireHome.instance.status == 'Approved'}">
      
       <ui:define name="label">Est List Price</ui:define>
       <h:inputText id="listPrice"
       size="100"
       maxlength="100"
       value="#{inquireHome.instance.listPrice}"
       rendered="#{inquireHome.instance.status == 'Approved'}">
       <a:support event="onblur" reRender="listPriceDecoration" bypassUpdates="true" ajaxSingle="true"/>
       </h:inputText>
      
       </s:decorate>