1 Reply Latest reply on Jun 6, 2008 2:44 AM by kesare.balaji

    table not rendered if we use calendar custom componenet on a

    kesare.balaji

      here cc:calendar is custom component (means code for calendar is placed in one jsf file ) but my problem is when i press ajax button it not rerender my table as i haved seted its id in rerendered attribut in commandButton .
      but if i use directly rich:calendar insted of cc:calendar it works fine but i don't want to put it directly. any suggetion is strongly appreciated ......



      <a4j:outputPanel ajaxRendered="true">
      <cc:customTable cellpadding="1" cellspacing="1" id="tblMaintList" styleClass="selectTable" type="single" onContextMenu=" " width="100%"
      onclick="selectRow();">
      <cc:customTableSection section="header">
      <cc:customTr styleClass="selectHeader">
      <cc:customTd isHeader="true" addonAttributes="type,tabindex" type="s">
      <h:outputText value="#{uldGroupInformationBundle.DETAILS_ULD_GROUP_LBL}" title="#{uldGroupInformationBundle.DETAILS_ULD_GROUP_TIP}" tabindex="#{headerBean.tabIndex}" escape="false" />
      </cc:customTd>
      <cc:customTd isHeader="true" addonAttributes="type,tabindex" type="s">
      <h:outputText value="#{uldGroupInformationBundle.DETAILS_DESCRIPTION_LBL}" title="#{uldGroupInformationBundle.DETAILS_DESCRIPTION_TIP}" tabindex="#{headerBean.tabIndex}" escape="false" />
      </cc:customTd>
      <cc:customTd isHeader="true" addonAttributes="type,tabindex" type="s">
      <h:outputText value="#{uldGroupInformationBundle.ACTION_ULD_PREFIX_LBL}" tabindex="#{headerBean.tabIndex}" escape="false" />
      </cc:customTd>
      </cc:customTr>
      </cc:customTableSection>
      <cc:customTableSection section="body">
      <c:forEach items="#{UldGroupInformation.allULDGroups}" var="uldGrpInfo"
      varStatus="loopMetaData">
      <cc:customTr addonAttributes="oid,version" oid="#{uldGrpInfo.OId}"
      version="#{uldGrpInfo.version}" type="c">
      <c:if test="#{loopMetaData.index % 2 == 0}">
      <f:attribute name="styleClass" value="clickLight" />
      </c:if>
      <c:if test="#{loopMetaData.index % 2 == 1}">
      <f:attribute name="styleClass" value="clickDark" />
      </c:if>
      <cc:customTd>
      <h:outputText value="#{uldGrpInfo.groupNumber}" escape="false" />
      </cc:customTd>
      <cc:customTd>
      <h:outputText value="#{uldGrpInfo.description}" escape="false" />
      </cc:customTd>
      <cc:customTd>
      <ui:repeat value="#{uldGrpInfo.prefixes}" var="uldPrefix">
      <c:if test="#{loopMetaData.index % 2 == 0}">
      <f:attribute name="styleClass" value="clickLight" />
      </c:if>
      <c:if test="#{loopMetaData.index % 2 == 1}">
      <f:attribute name="styleClass" value="clickDark" />
      </c:if>

      <h:outputText value="#{uldPrefix.prefix}" escape="false" />
      <h:outputText value=" " escape="false"/>
      </ui:repeat>
      </cc:customTd>
      <cc:customTd style="display:none;">
      <ui:repeat value="#{uldGrpInfo.prefixes}" var="uldPrefix">
      <h:outputText value="#{uldPrefix.OId}" />
      <h:outputText value=" " escape="false"/>
      </ui:repeat>
      </cc:customTd>
      </cc:customTr>
      </c:forEach>
      </cc:customTableSection>
      <cc:customTr>
      <cc:customTd>

      <cc:calendar id="txtDelEnddate" maxlength="7" inputClass="required"
      tabindex="3" title="Check title" formName="frmULDGroup"/>

      </cc:customTd>
      </cc:customTr>
      </cc:customTable>
      </a4j:outputPanel>


      <a4j:commandButton styleClass="actionButton" id="btnAjaxProcess"
      value="#{uldGroupInformationBundle.ACTION_PROCESS_BTN_LBL}" tabindex="#{headerBean.tabIndex}"
      title="#{uldGroupInformationBundle.ACTION_PROCESS_BTN_TIP}" style="display:none"
      action="#{UldGroupInformation.processRequest}" reRender="#{UldGroupInformation.attrToBeRerender}" oncomplete="showMessage();" />