icefaces datatable component

Posted by chetan on Stack Overflow See other posts from Stack Overflow or by chetan
Published on 2010-04-08T05:53:39Z Indexed on 2010/04/08 6:53 UTC
Read the original article Hit count: 524

Filed under:

I have two datatable in two different jspx page but when I call one then i try to call other old one still display what is the problem there. from the old page only datatable is display no other component are displayed.

This is one jspx page

--> -->
          <div style="margin-bottom: 20px;">
     <div>

      <div class="page-navi">
        <ice:dataPaginator id="dataScroll_3" for="companyDataTable1" paginator="true">
          <f:facet name="first">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-first.gif" title="First Page" />
          </f:facet>
          <f:facet name="last">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-last.gif" title="Last Page" />
          </f:facet>
          <f:facet name="previous">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-previous.gif" title="Previous Page" />
          </f:facet>
          <f:facet name="next">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-next.gif" title="Next Page" />
          </f:facet>
        </ice:dataPaginator>
      </div>

        <ice:panelGroup>
          <ice:dataTable id="companyDataTable1"  rendered="#{createLeaveBean.empRender}" binding="#{createLeaveBean.empTable}" value="#{createLeaveBean.lstEmployeeeInfo}" var="currentRow" width="80%" cellpadding="0" cellspacing="0" headerClass="std-table-header" styleClass="std-table" rows="10">
          <ice:column style="width: 1%">
            <f:facet name="header"> <ice:selectBooleanCheckbox id="selectallemp"  partialSubmit="true" value="#{createLeaveBean.selectAll}" valueChangeListener="#{createLeaveBean.toggleSelectedFields}" onkeydown="moveFocus(event,'selectoneemp')" tabindex="8"></ice:selectBooleanCheckbox>  </f:facet>       
            <ice:selectBooleanCheckbox id="selectoneemp"  value="#{currentRow.notify}" tabindex="9" ></ice:selectBooleanCheckbox>
          </ice:column>

          <ice:column style="width: 5%;">
            <f:facet name="header"><ice:outputText value="Employee Id" /></f:facet>
            <ice:outputText value="#{currentRow.employeeInfoId}" />
          </ice:column>
          <ice:column style="width: 34%;">
            <f:facet name="header"><ice:outputText value="Employee Name" /></f:facet>
            <ice:outputText value="#{currentRow.firstName}" />
          </ice:column>             
        </ice:dataTable>
        </ice:panelGroup>

    </div>

        <ice:commandButton id="createleave" tabindex="12" value="Create" action="#{createLeaveBean.createLeavePolicyEmp}" styleClass="std-btn" style="margin-right: 10px;margin-left: 50px;margin-top: 15px"></ice:commandButton>
        <ice:commandButton id="cancelleave" tabindex="13" value="Cancel" action="#{createLeaveBean.cancelLeavePolicyEmp}" rendered="true" styleClass="std-btn" style="margin-top: 15px"></ice:commandButton>

        </div>

This is second jspx page

        <div class="page-navi">
        <ice:dataPaginator id="dataScroll_4" for="companyDataTable2" paginator="true">
          <f:facet name="first">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-first.gif" title="First Page" />
          </f:facet>
          <f:facet name="last">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-last.gif" title="Last Page" />
          </f:facet>
          <f:facet name="previous">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-previous.gif" title="Previous Page" />
          </f:facet>
          <f:facet name="next">
              <ice:graphicImage url="/xmlhttp/css/xp/css-images/arrow-next.gif" title="Next Page" />
          </f:facet>
        </ice:dataPaginator>
      </div>
            <ice:panelGroup>
          <ice:dataTable id="companyDataTable2" rendered="#{createLeaveBean.deptRender}" binding="#{createLeaveBean.empTable}" value="#{createLeaveBean.lstEmployeeeInfo}" var="currentRowww" width="96%" cellpadding="0" cellspacing="0" headerClass="std-table-header" styleClass="std-table" rows="10">


          <ice:column style="width: 5%;">
            <f:facet name="header"><ice:outputText value="Employee Id" /></f:facet>
            <ice:outputText value="#{currentRowww.employeeInfoId}" />
          </ice:column>
          <ice:column style="width: 34%;">
            <f:facet name="header"><ice:outputText value="Employee Name" /></f:facet>
            <ice:outputText value="#{currentRowww.firstName}" />
          </ice:column>             
        </ice:dataTable>
        </ice:panelGroup>

        <ice:commandButton id="createLeave"  value="Create" action="#{createLeaveBean.createLeavePolicyDept}" styleClass="std-btn" tabindex="8" style="margin-right: 10px;margin-left: 40px;margin-top: 15px"></ice:commandButton>

        <ice:commandButton id="cancelLeave" value="Cancel" action="#{createLeaveBean.cancelLeavePolicyDept}" rendered="true" styleClass="std-btn" tabindex="9" style="margin-top: 15px"></ice:commandButton>


© Stack Overflow or respective owner

Related posts about jsf