2 Replies Latest reply on Dec 1, 2008 10:14 AM by Nick Belaevski

    <h:InputText box not refreshing in rich:column on rerender

    Ragin Rajendran Newbie

      Hi ,
      the <h:inputText> with id ="price1" is not getting rerendered while applying <a4j:support >.
      but it this is getting rerendered when i used <h:outputText>

      Please Help me....

      
      <rich:dataTable id ="tableContainer" onRowMouseOver="this.style.backgroundColor='#666666'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" width="810" border="0" var="record"
       value="" >
       <f:facet name="header" >
       <rich:columnGroup >
      
       <rich:column breakBefore="true">
       <h:outputText value="Specification" />
       </rich:column>
       <rich:column>
       <h:outputText value="Description" />
       </rich:column>
       <rich:column>
       <h:outputText value="Price" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column colspan="0">
       <h:outputText value="" />
       </rich:column>
      
      
       <c:out value="${jsf$g2$purchaseOrder.dataList2[1][1].text}"></c:out>
       <c:out value="${jsf$g2$purchaseOrder.spec[1][1].label}"></c:out>
      
      
       <c:if test="${jsf$g2$purchaseOrder.spec != null and jsf$g2$purchaseOrder.spec[0] != null}">
       <rich:subTable onRowMouseOver="this.style.backgroundColor='#3BB9F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       var="expense" value="">
       <rich:column>
       <h:selectOneMenu value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specCat[0]}" id="sel0"
       valueChangeListener="#{jsf$g2$purchaseOrder.catChanged}">
       <a4j:support event="onchange" reRender="descri,price1" oncomplete="" />
       <f:selectItems value="#{jsf$g2$purchaseOrder.spec[0]}"/>
       </h:selectOneMenu>
       <rich:spacer />
       </rich:column>
      
       </c:if>
      <rich:dataTable>
       <rich:column>
       <h:outputText id ="descri" value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specDescription[0]}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:inputHidden id="price1" value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specPrice[0]}"></h:inputHidden>
       <h:commandButton onclick="alert(document.getElementById('test:descri'));return;" />
       </rich:column>
       </rich:subTable>
      
      
      



      Thanks in advance,
      Ragin

        • 1. Re: <h:InputText box not refreshing in rich:column on rerend
          Ragin Rajendran Newbie

           

          
          
          
          <rich:dataTable id ="tableContainer" onRowMouseOver="this.style.backgroundColor='#666666'"
           onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
           cellpadding="0" cellspacing="0" width="810" border="0" var="record"
           value="" >
           <f:facet name="header" >
           <rich:columnGroup >
          
           <rich:column breakBefore="true">
           <h:outputText value="Specification" />
           </rich:column>
           <rich:column>
           <h:outputText value="Description" />
           </rich:column>
           <rich:column>
           <h:outputText value="Price" />
           </rich:column>
           </rich:columnGroup>
           </f:facet>
          
           <rich:column colspan="0">
           <h:outputText value="" />
           </rich:column>
          
          
           <c:out value="${jsf$g2$purchaseOrder.dataList2[1][1].text}"></c:out>
           <c:out value="${jsf$g2$purchaseOrder.spec[1][1].label}"></c:out>
          
          
           <c:if test="${jsf$g2$purchaseOrder.spec != null and jsf$g2$purchaseOrder.spec[0] != null}">
           <rich:subTable onRowMouseOver="this.style.backgroundColor='#3BB9F1'"
           onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
           var="expense" value="">
           <rich:column>
           <h:selectOneMenu value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specCat[0]}" id="sel0"
           valueChangeListener="#{jsf$g2$purchaseOrder.catChanged}">
           <a4j:support event="onchange" reRender="descri,price1" oncomplete="" />
           <f:selectItems value="#{jsf$g2$purchaseOrder.spec[0]}"/>
           </h:selectOneMenu>
           <rich:spacer />
           </rich:column>
          
           </c:if>
          
           <rich:column>
           <h:outputText id ="descri" value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specDescription[0]}"></h:outputText>
           </rich:column>
           <rich:column>
           <h:inputHidden id="price1" value="#{jsf$g2$purchaseOrder.purchaseOrderEntity.specPrice[0]}"></h:inputHidden>
           <h:commandButton onclick="alert(document.getElementById('test:descri'));return;" />
           </rich:column>
           </rich:subTable>
          
          </rich:dataTable>
          
          


          • 2. Re: <h:InputText box not refreshing in rich:column on rerend
            Nick Belaevski Master

            Hi Ragin,

            Does something change if you make a4j:support ajaxSingle=true?