1 2 Previous Next 19 Replies Latest reply on Aug 4, 2015 5:21 AM by askkuber

    Expanding richtree and then refresh after that expand collapse images gone?

    askkuber
       <h:commandButton id="custResetButton6" style="width:30px;height:30px;border:none;background:none;" styleClass="button-color" value="#{bsmPortalLabel['button.common.refresh']}" image="/resources/images/refreshGrey.png" action="#{inventoriesBean.refreshSure()}" execute="@this"> <rich:tooltip layout="block"> <span style="white-space: nowrap">#{bsmPortalLabel['button.common.refreshSure']} </span> </rich:tooltip> </h:commandButton>
      
       
      

      Above is this refresh button code...

       

      here is the tree code ...

       

      <rich:tree id="treeCust" styleClass="#{inventoriesBean.showMap eq true ? 'richTreeWithMap' : 'richTreeWithoutMap'}" toggleListener="#{inventoriesBean.processTreeToggle}" selectionType="ajax" var="item" toggleType="ajax" binding="#{inventoriesBean.treeBindingCust}" selectionChangeListener="#{inventoriesBean.processTreeSelectionChange}" reRender="selectedNode" render="selectedNode" rendered="#{inventoriesBean.searchedCustServices !='show'}">
         <rich:treeModelRecursiveAdaptor id="customerList12" roots="#{inventoriesBean.customerList}" nodes="#{item.customerName}">
         <rich:treeNode id="customerNode" styleClass="CustomerNameClass" iconCollapsed="/resources/images/Customer.png" iconExpanded="/resources/images/Customer.png"> #{item.customerName}
         <rich:contextMenu id="contextMenuMainCustDelete" target="customerNode" direction="auto" attached="true" mode="ajax" targetSelector=".CustomerNameClass">
         <rich:menuItem id="dltcust" label="Delete Customer" mode="ajax" render="treeCust" onclick="showDelCust();" />
         <rich:menuItem id="createCustMenu" label="Create Customer" render="messagePanel" action="#{inventoryManipulateBean.createCustomerPage()}" />
         <rich:menuItem id="modifyCustMenu1" label="Modify Customer" render="messagePanel" action="#{inventoryManipulateBean.modifyCustomerPage()}" />
         </rich:contextMenu>
         </rich:treeNode>
         <rich:treeModelAdaptor id="services" nodes="#{item.services}">
         <rich:treeNode id="custTypeChild2" iconLeaf="/resources/images/service.png" icon="/resources/images/service.png"> #{item.serviceName}
         <rich:contextMenu id="contextMenu11" mode="ajax" target="custTypeChild2">
         <rich:menuItem id="addEquipmentToMap" label="View on Map" mode="#{inventoriesBean.showMap eq true ? 'ajax' : 'server'}" action="#{inventoriesBean.addEquipmentToMap()}" render="mapPanel,mapview,graphPanel,messagePanel" oncomplete="initialize();" rendered="#{mdfApplicationBean.gmapLicense}">
         <f:param name="onloadparam" value="#{inventoriesBean.showMap eq true ? '' : 'onloadmap'}" />
         </rich:menuItem>
         <rich:menuItem id="showServiceGraph" mode="#{inventoriesBean.showMap eq true ? 'ajax' : 'server'}" label="Show Service Graph" render="graphPanel,mapPanel,mapview" onclick="displayMapGraphOnDemand('#{panelMenuBean.selectedTabName}',true);" action="#{inventoriesBean.setShowHideMap()}" oncomplete="hideMap();">
         <f:param name="onloadparam" value="#{inventoriesBean.showMap eq true ? '' : 'onloadgraph'}" />
         </rich:menuItem>
         </rich:contextMenu>
         </rich:treeNode>
         </rich:treeModelAdaptor>
         <rich:treeModelAdaptor id="moreServices654" nodes="#{item.moreservices}">
         <rich:treeNode id="loadMore" iconLeaf="/resources/images/LoadMore.ico" icon="/resources/images/LoadMore.ico">
         <a4j:commandLink action="#{inventoriesBean.loadMoreCustomerServList(item.customerId)}" render="treeCust" style='color:blue;'>
         <h:outputText id="service765" value="#{bsmPortalLabel['label.inventory.load.service']}" style='color:blue;' />
         </a4j:commandLink>
         <rich:tooltip id="pages" layout="block">
         <span style="white-space: nowrap">Current Page =
         #{item.currentPage}, Total Pages = #{item.totalPages},
         Total Services = #{item.totalElements} </span>
         </rich:tooltip>
         </rich:treeNode>
         </rich:treeModelAdaptor>
         </rich:treeModelRecursiveAdaptor>
      </rich:tree>
      

       

      Images before expanding tree node

       

      1.png

      Images after expanding tree node


      2.png

      image after refresh button press all +/- images gone


      3.png

        1 2 Previous Next