1 Reply Latest reply on Mar 3, 2009 4:42 AM by Nick Belaevski

    Problem with Select All Checkbox in Rich Faces

    gopi b Newbie

      Hi


      I have four data tables under different tabs (Rich Tab Panel) in
      form. I am using one table in a column Select All Check boxes, If I click Select All, all the check boxes are selected, But its not working please find problem and help me, the code is below

      Thanks in Advanced.

      xhtml:
      ------------



      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
      template="../layout/mainTemplate.xhtml">
      <ui:define name="innerbody">

      <ui:include src="../stylesheet/defaultStyles.css" />
      <s:cache key="0" region="table" enabled="false"></s:cache>
      <h:form id="CustomerForm" enctype="multipart/form-data"
      style="padding-top:2% ; padding-left:2% ;vertical-align: top; padding-right:5%">
      <h:messages globalOnly="true" styleClass="message"
      style="border: 1px solid #FFCC00;
      padding: 5px; margin-top: 5px; margin-bottom: 5px; background-color: #F0F8FF; font-size: 12px;" />
      #{contexts.sessionContext.remove('photoImage')}
      <rich:tabPanel id="table" switchType="client"
      headerClass="headerFont">

      <rich:tab
      label="Pending Tasks (#{taskConditions.getPendingItems(taskInstanceListForType['Edit-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Application-Review'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network Team'].size)+taskConditions.getPendingItems(taskInstanceListForType['Accounts'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Care'].size)})">
      <h:outputText value="There are no Pending Tasks"
      rendered="#{taskConditions.getPendingItems(taskInstanceListForType['Edit-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Application-Review'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network Team'].size)+taskConditions.getPendingItems(taskInstanceListForType['Accounts'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Care'].size)eq 0}" />
      <rich:panelBar height="100%" width="100%"
      rendered="#{taskConditions.getPendingItems(taskInstanceListForType['Edit-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Application-Review'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network Team'].size)+taskConditions.getPendingItems(taskInstanceListForType['Accounts'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Care'].size) > 0}">
      <rich:panelBarItem
      label="Edit Request (#{taskConditions.getPendingItems(taskInstanceListForType['Edit-Request'].size)})"
      rendered="#{s:hasRole('Create Customer')}">
      <h:outputText value="There are no customer profiles to be Edited"
      rendered="#{empty taskInstanceListForType['Edit-Request']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Edit-Request'].size)}" />

      <rich:datascroller align="center" for="editRequest2"
      rendered="#{not empty taskInstanceListForType['Edit-Request']}"
      maxPages="200" renderIfSinglePage="false" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Edit-Request']}" />
      <rich:dataTable id="editRequest2"
      value="#{taskInstanceListForType['Edit-Request']}" var="task"
      rendered="#{not empty taskInstanceListForType['Edit-Request']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Customer ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Plan Name" />
      </f:facet>
      <h:outputText value="#{task.variables['planType']}">

      </h:outputText>
      </rich:column>



      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="date" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Edit" />
      </f:facet>
      <s:button action="#{editRequest.taskDecider(task.start)}"
      value=" Edit " styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name=" "
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['editRequestBy']}" />
      </s:button>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mark As Completed" />
      </f:facet>
      <s:button action="#{editRequest.taskCompleted(task.start)}"
      value="Completed" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="editRequestBy"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['editRequestBy']}" />
      </s:button>

      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>



      </rich:panelBarItem>


      <rich:panelBarItem
      label="Profile Review (#{taskConditions.getPendingItems(taskInstanceListForType['Application-Review'].size)})"
      rendered="#{s:hasRole('Check Profile')}">
      <h:outputText
      value="There are no customer profiles to be reviewed."
      rendered="#{empty taskInstanceListForType['Application-Review']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Application-Review'].size)}" />

      <rich:datascroller align="center" for="reviewTasks"
      rendered="#{not empty taskInstanceListForType['Application-Review']}"
      maxPages="200" renderIfSinglePage="false" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Application-Review']}" />
      <rich:dataTable id="reviewTasks"
      value="#{taskInstanceListForType['Application-Review']}"
      var="task"
      rendered="#{not empty taskInstanceListForType['Application-Review']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true" width="100px"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Customer ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      <s:convertDateTime type="date" />
      </h:outputText>
      </rich:column>

      <rich:column align="center" width="140px">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>

      <rich:column align="center" sortable="true" width="100px"
      sortBy="#{task.variables['planType']}">
      <f:facet name="header">
      <h:outputText value="Plan Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['planType']}">
      </h:outputText>
      </rich:column>
      <rich:column align="center" sortable="true"
      sortBy="#{task.variables['locationType']}">
      <f:facet name="header">
      <h:outputText value="Usage" />
      </f:facet>
      <h:outputText value="#{task.variables['locationType']}">
      </h:outputText>
      </rich:column>
      <rich:column align="center" width="100px">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="date" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>
      <rich:column align="center" width="90">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button action="#{reviewCustomer.taskDecider(task.start)}"
      value="Review" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user1']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user3']}" />
      </s:button>

      </rich:column>
      <rich:column align="center" width="120px">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>
      </rich:panelBarItem>

      <rich:panelBarItem
      label="Connection Installation (#{taskConditions.getPendingItems(taskInstanceListForType['Network Team'].size)})"
      rendered="#{s:hasRole('NTManager')||s:hasRole('NTEngineers')}">
      <h:outputText value="There are no Connection Request"
      rendered="#{empty taskInstanceListForType['Network Team']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Network Team'].size)}" />

      <rich:datascroller align="center" for="coordinatorTasks"
      rendered="#{not empty taskInstanceListForType['Network Team']}"
      renderIfSinglePage="false" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Network Team']}" />
      <rich:dataTable id="coordinatorTasks"
      value="#{taskInstanceListForType['Network Team']}" var="task"
      rendered="#{not empty taskInstanceListForType['Network Team']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="10" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Customer No" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      <s:convertDateTime type="date" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Plan Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['planType']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Usage" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationType']}" />
      </rich:column>
      <rich:column align="center" sortable="true"
      sortBy="#{task.variables['locationVerification']}">
      <f:facet name="header">
      <h:outputText value="Verification Status" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="date" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>




      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button
      action="#{newConnectionAction.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      rendered="#{(task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification'] eq 'Completed') and (task.taskMgmtInstance.processInstance.contextInstance.variables['locationStatus'] eq 'Available')}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />
      </s:button>

      <s:button
      action="#{locationVerification.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      rendered="#{(task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification'] eq 'Pending') or (task.taskMgmtInstance.processInstance.contextInstance.variables['locationStatus'] eq 'Not Available')}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />
      </s:button>
      </rich:column>

      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') and !s:hasRole('NTEngineers')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>

      </rich:dataTable>
      </rich:panelBarItem>

      <rich:panelBarItem
      label="New Account (#{taskConditions.getPendingItems(taskInstanceListForType['Accounts'].size)})"
      rendered="#{s:hasRole('Accountant') ||s:hasRole('AccoutsManager')}">
      <h:outputText value="There are no New Account Task"
      rendered="#{empty taskInstanceListForType['Accounts']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Accounts'].size)}" />

      <rich:datascroller align="center" for="coordinatorTasks1"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Accounts']}" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Accounts']}" />
      <rich:dataTable id="coordinatorTasks1"
      value="#{taskInstanceListForType['Accounts']}" var="task"
      rendered="#{not empty taskInstanceListForType['Accounts']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="10" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Customer No" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      <s:convertDateTime type="date" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Plan Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['planType']}" />
      </rich:column>
      <rich:column align="center" sortable="true"
      sortBy="#{task.variables['locationVerification']}">
      <f:facet name="header">
      <h:outputText value="Verification Status" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="date" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button action="#{newAccountAction.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      </s:button>
      </rich:column>

      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccountsManager')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>

      </rich:dataTable>

      </rich:panelBarItem>


      <rich:panelBarItem
      label="Customer Care(#{taskConditions.getPendingItems(taskInstanceListForType['Customer-Care'].size)})"
      rendered="#{s:hasRole('Contact Customer')}">
      <h:outputText value="There are no Customers to Contact"
      rendered="#{empty taskInstanceListForType['Customer-Care']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Customer-Care'].size)}" />

      <rich:datascroller align="center" for="coordinatorTasks2"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Customer-Care']}" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Customer-Care']}" />
      <rich:dataTable id="coordinatorTasks2"
      value="#{taskInstanceListForType['Customer-Care']}" var="task"
      rendered="#{not empty taskInstanceListForType['Customer-Care']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="10" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Customer No" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      <s:convertDateTime type="date" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Plan Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['planType']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Usage" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationType']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Application OutCome" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['applicationOutcome']}" />
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="date" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button action="#{informCustomer.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="customerId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />


      </s:button>
      </rich:column>

      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccoutsManager')||s:hasRole('Contact Customer')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>

      </rich:dataTable>
      </rich:panelBarItem>
      </rich:panelBar>
      </rich:tab>



      <rich:tab
      label="Pending Calls(#{taskConditions.getPendingItems(taskInstanceListForType['Network-Complaints'].size)+taskConditions.getPendingItems(taskInstanceListForType['Finance-Complaints'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Feedback'].size)+taskConditions.getPendingItems(taskInstanceListForType['Review-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Modify-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Finance-Clearance'].size)+taskConditions.getPendingItems(taskInstanceListForType['ReConfirm-Customer'].size)})">
      <h:outputText value="There are no Pending Calls"
      rendered="#{taskConditions.getPendingItems(taskInstanceListForType['Finance-Complaints'].size)+ taskConditions.getPendingItems(taskInstanceListForType['Network-Complaints'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Feedback'].size)+taskConditions.getPendingItems(taskInstanceListForType['Review-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Modify-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Finance-Clearance'].size)+taskConditions.getPendingItems(taskInstanceListForType['ReConfirm-Customer'].size) eq 0}"></h:outputText>
      <rich:panelBar height="100%" width="100%"
      rendered="#{taskConditions.getPendingItems(taskInstanceListForType['Finance-Clearance'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Finance-Complaints'].size)+ taskConditions.getPendingItems(taskInstanceListForType['Network-Complaints'].size)+taskConditions.getPendingItems(taskInstanceListForType['Customer-Feedback'].size)+taskConditions.getPendingItems(taskInstanceListForType['Review-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Modify-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)+taskConditions.getPendingItems(taskInstanceListForType['Finance-Clearance'].size)+taskConditions.getPendingItems(taskInstanceListForType['ReConfirm-Customer'].size) > 0}">
      <rich:panelBarItem
      label="Network Complaints (#{taskConditions.getPendingItems(taskInstanceListForType['Network-Complaints'].size)})"
      rendered="#{s:hasRole('NTManager') || s:hasRole('NTEngineers')}">
      <h:outputText value="There are no Network Complaints"
      rendered="#{empty taskInstanceListForType['Network-Complaints']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Network-Complaints'].size)}" />

      <rich:datascroller align="center" for="editRequest21"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Network-Complaints']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Network-Complaints']}" />
      <rich:dataTable id="editRequest21"
      value="#{taskInstanceListForType['Network-Complaints']}"
      var="task"
      rendered="#{not empty taskInstanceListForType['Network-Complaints']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionType']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="IP Address" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['ipAddress']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection Mode" />
      </f:facet>
      <h:outputText
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode'] ne null}"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode']}">
      </h:outputText>
      <h:outputText
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode'] eq null}"
      value="N/A">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Complaint Description" />
      </f:facet>
      <h:outputText
      rendered="#{empty task.taskMgmtInstance.processInstance.contextInstance.variables['complaintDescription']}"
      value="N/A">
      </h:outputText>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['complaintDescription']}">
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button action="#{networkComplaints.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      </s:button>
      </rich:column>
      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccoutsManager')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>
      </rich:panelBarItem>
      <rich:panelBarItem
      label="Finance Complaints (#{taskConditions.getPendingItems(taskInstanceListForType['Finance-Complaints'].size)})"
      rendered="#{s:hasRole('Accountant')||s:hasRole('AccoutsManager')}">
      <h:outputText value="There are no Finance Complaints"
      rendered="#{empty taskInstanceListForType['Finance-Complaints']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Finance-Complaints'].size)}" />

      <rich:datascroller align="center" for="finance-complaints"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Finance-Complaints']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Finance-Complaints']}" />
      <rich:dataTable id="finance-complaints"
      value="#{taskInstanceListForType['Finance-Complaints']}"
      var="task"
      rendered="#{not empty taskInstanceListForType['Finance-Complaints']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customer_Id']}">

      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['custType']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Account ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['accountId']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Complaint Description" />
      </f:facet>
      <h:outputText
      rendered="#{empty task.taskMgmtInstance.processInstance.contextInstance.variables['complaintDescription']}"
      value="N/A">
      </h:outputText>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['complaintDescription']}">
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button action="#{financeComplaints.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      </s:button>
      </rich:column>
      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccoutsManager')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>
      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>

      </rich:panelBarItem>



      jQuery(document).ready(function() {
      jQuery('body').click(function(event) {
      var tableId = '#customerFeedbackForm\\:task.id';
      if ((event.target.id)=='select_all') {
      jQuery(tableId).find('input[@type=checkbox]').attr('checked', true);
      }

      if ((event.target.id)=='clear_all') {
      jQuery(tableId).find('input[@type=checkbox]').attr('checked', false);
      }
      });
      });







      <rich:panelBarItem
      label="Customer Feedback (#{taskConditions.getPendingItems(taskInstanceListForType['Customer-Feedback'].size)})"
      rendered="#{s:hasRole('Contact Customer')}">
      <h:outputText value="There are no Complaint Feedback"
      rendered="#{empty taskInstanceListForType['Customer-Feedback']}" />


      <h:outputText
      value="Number of Open Items: #{taskConditions.getPendingItems(taskInstanceListForType['Customer-Feedback'].size)}" />
      <h:form id="customerFeedbackForm" enctype="multipart/form-data" >
      <a4j:region renderRegionOnly="false">
      <rich:datascroller align="center" for="finance-complaints"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Customer-Feedback']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Customer-Feedback']}" />
      <rich:dataTable id="finance-complaints"
      value="#{taskInstanceListForType['Customer-Feedback']}"
      var="task"
      rendered="#{not empty taskInstanceListForType['Customer-Feedback']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">

      <rich:column>
      <f:facet name="header">
      SelectAll |

      Clear
      <!-- <h:outputText value="Select" /> -->
      </f:facet>
      <h:selectManyCheckbox
      value="#{customerFeedBack.taskIdentity}">
      <f:selectItem itemValue="#{task.id}" />

      </h:selectManyCheckbox>
      </rich:column>

      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customer_Id']}">

      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mobile Number" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['mobileNumber']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Call Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['callType']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Call Status" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['callOutCome']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>
      <s:button
      action="#{customerFeedBack.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <s:conversationPropagation type="none" />
      </s:button>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>
      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>
      <a4j:commandButton id="deleted" value="Close Calls"
      action="#{customerFeedBack.actionPerformer}"
      styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      onclick="if (!confirm('Are you sure you want to close these Calls?')) return false;">
      <s:conversationPropagation type="join" />
      </a4j:commandButton>

      </a4j:region>
      </h:form>
      </rich:panelBarItem>

      <rich:panelBarItem
      label="Review Requests (#{taskConditions.getPendingItems(taskInstanceListForType['Review-Request'].size)})"
      rendered="#{s:hasRole('Review Request')}">
      <h:outputText value="There are no Change Requests"
      rendered="#{(empty taskInstanceListForType['Review-Request'])}" />


      <h:outputText
      value="Number of Open Items: (#{taskConditions.getPendingItems(taskInstanceListForType['Review-Request'].size)})" />

      <rich:datascroller align="center" for="editRequest22"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Review-Request']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Review-Request']}" />
      <rich:dataTable id="editRequest22"
      value="#{taskInstanceListForType['Review-Request']}" var="task"
      rendered="#{not empty taskInstanceListForType['Review-Request']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection ID" />
      </f:facet>
      <h:outputText
      rendered="#{ task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'] ne '0'}"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId']}">
      </h:outputText>
      <h:outputText value="N/A"
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'] eq '0' or (empty task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'])}"></h:outputText>

      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Service Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionType']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="IP Address" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['ipAddress']}"
      rendered="#{not empty task.taskMgmtInstance.processInstance.contextInstance.variables['ipAddress']}">

      </h:outputText>
      <h:outputText value="N/A"
      rendered="#{empty task.taskMgmtInstance.processInstance.contextInstance.variables['ipAddress']}">
      </h:outputText>
      </rich:column>



      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection Mode" />
      </f:facet>
      <h:outputText
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode'] ne null}"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode']}">
      </h:outputText>

      <h:outputText
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode'] eq null}"
      value="N/A">
      </h:outputText>

      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Request Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['requestType']}">
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Verification Status" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification']}">
      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Request" />
      </f:facet>
      <s:button action="#{changeRequest.taskDecider(task.start)}"
      value="Review" styleClass="defaultButton" propagation="none"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      </s:button>
      </rich:column>
      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccoutsManager')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>
      </rich:dataTable>
      </rich:panelBarItem>



      <rich:panelBarItem
      label="Edit Requests (#{taskConditions.getPendingItems(taskInstanceListForType['Modify-Request'].size)})"
      rendered="#{s:hasRole('Create Customer')}">
      <h:outputText value="There are no Edit Requests"
      rendered="#{(empty taskInstanceListForType['Modify-Request'])}" />


      <h:outputText
      value="Number of Open Items: (#{taskConditions.getPendingItems(taskInstanceListForType['Modify-Request'].size)})" />

      <rich:datascroller align="center" for="editRequest23"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Modify-Request']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Modify-Request']}" />
      <rich:dataTable id="editRequest23"
      value="#{taskInstanceListForType['Modify-Request']}" var="task"
      rendered="#{not empty taskInstanceListForType['Modify-Request']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Service Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionType']}">

      </h:outputText>
      </rich:column>

      <!--
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="IP Address" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['ipAddress']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection Mode" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionMode']}">

      </h:outputText>
      </rich:column>
      -->
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Request Description" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['requestType']}">
      </h:outputText>
      </rich:column>


      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Request" />
      </f:facet>
      <s:button action="#{editChangeRequest.taskDecider(task.start)}"
      value="Edit" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="editRequestBy"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['editRequestBy']}" />
      </s:button>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Mark As Completed" />
      </f:facet>
      <s:button
      action="#{editChangeRequest.taskCompleted(task.start)}"
      value="Completed" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="editRequestBy"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['editRequestBy']}" />
      </s:button>

      </rich:column>
      <rich:column align="center"
      rendered="#{s:hasRole('NTManager') || s:hasRole('AccoutsManager')}">
      <f:facet name="header">
      <h:outputText value="Un-Assign Task" />
      </f:facet>

      <s:button action="#{taskConditions.unAssignTask()}"
      value="Un-Assign Task" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}">
      <f:param name="taskId" value="#{task.id}" />
      </s:button>
      </rich:column>



      </rich:dataTable>
      </rich:panelBarItem>



      <rich:panelBarItem
      label="Network Requests (#{taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)})"
      rendered="#{s:hasRole('NTManager') or s:hasRole('NTEngineers')}">
      <h:outputText value="There are no Network Requests"
      rendered="#{(empty taskInstanceListForType['Network-Request'])}" />


      <h:outputText
      value="Number of Open Items: (#{taskConditions.getPendingItems(taskInstanceListForType['Network-Request'].size)})" />

      <rich:datascroller align="center" for="nwRequest"
      renderIfSinglePage="false"
      rendered="#{not empty taskInstanceListForType['Network-Request']}"
      maxPages="200" />
      <rich:spacer
      rendered="#{not empty taskInstanceListForType['Network-Request']}" />
      <rich:dataTable id="nwRequest"
      value="#{taskInstanceListForType['Network-Request']}" var="task"
      rendered="#{not empty taskInstanceListForType['Network-Request']}"
      rowClasses="#{tableLnF.getRowSettings(skinBean.skin)}"
      headerClass="#{tableLnF.getHeaderSettings(skinBean.skin)}"
      rows="5" columnClasses="formFont2">
      <rich:column align="center" sortable="true"
      sortBy="#{task.taskMgmtInstance.processInstance.key}">
      <f:facet name="header">
      <h:outputText value="Call ID" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.key}">
      </h:outputText>
      </rich:column>
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Customer Name" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['customerName']}" />
      </rich:column>
      <!-- <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Verification Status" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification']}" />
      </rich:column> -->

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Connection ID" />
      </f:facet>
      <h:outputText
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'] ne '0'}"
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId']}">

      </h:outputText>
      <h:outputText value="N/A"
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'] eq '0' or (empty task.taskMgmtInstance.processInstance.contextInstance.variables['connectionId'])}"></h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Service Type" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['connectionType']}">

      </h:outputText>
      </rich:column>

      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Request Description" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.contextInstance.variables['requestType']}">
      </h:outputText>
      </rich:column>


      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Applied On" />
      </f:facet>
      <h:outputText
      value="#{task.taskMgmtInstance.processInstance.start}">
      <s:convertDateTime type="both" pattern="dd/MMM/yyyy" />
      </h:outputText>
      </rich:column>


      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Check Task" />
      </f:facet>



      <s:button
      action="#{changeConnectionAction.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification'] eq 'Completed' and task.taskMgmtInstance.processInstance.contextInstance.variables['locationStatus'] eq 'Available'}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />
      </s:button>
      <s:button
      action="#{changeConnectionAction.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification'] eq 'Completed' and task.taskMgmtInstance.processInstance.contextInstance.variables['locationStatus'] eq 'Not Available'}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.processInstance.id}" />
      <f:param name="callId"
      value="#{task.taskMgmtInstance.processInstance.key}" />
      <f:param name="previousActorId"
      value="#{task.variables['user2']}" />
      <f:param name="forwardActorId"
      value="#{task.variables['user4']}" />
      </s:button>

      <s:button
      action="#{locationVerification.taskDecider(task.start)}"
      value="Check" styleClass="defaultButton"
      style="#{formLnF.getButtonSettings(skinBean.skin)}"
      rendered="#{task.taskMgmtInstance.processInstance.contextInstance.variables['locationVerification'] eq 'Pending' || task.taskMgmtInstance.processInstance.contextInstance.variables['locationStatus'] eq null}">
      <f:param name="taskId" value="#{task.id}" />
      <f:param name="processId"
      value="#{task.taskMgmtInstance.