1 Reply Latest reply on Feb 23, 2015 3:36 AM by balachithirai

    rich:listshuttle - targetValue is null in bean class

    balachithirai

      I am new to JSF.

       

      In my screen am using ListShuttle, when I move value form source to target Its happening only in screen, in bean am getting targetValue as null. I am using List of String as SourceValue. Some scenario its working fine. Some scenarios its not working

      I could not find where I did mistake. Thanks in advance

      this is my xhtml code:


      <h:panelGrid columns="1">
      <rich:listShuttle id="rptColumn" styleClass="lishShuttle" onmouseover="this.style.cursor='pointer'" sourceValue="#{dynamicBean.selectedData.avlblRptClmn}" targetValue="#{dynamicBean.selectedData.selectedRptClmn}"
      listsHeight="150" sourceListWidth="180" targetListWidth="180"   var="items" showButtonLabels="false"  valueChangeListener = "#{reportViewerBean.listShuttleListener}">
      <rich:column>
      <h:outputText value="#{items}"></h:outputText>
      </rich:column>
      <a4j:support event="onorderchanged" reRender="rptColumn" status="waitStatus" ajaxSingle="true" limitToList="true"/>
      <a4j:support event="onlistchanged" reRender="rptColumn" status="waitStatus" ajaxSingle="true" limitToList="true"/>

      </rich:listShuttle>
      </h:panelGrid>

       

      bean method :

      (ReportViewerBean)

      public void listShuttleListener(ValueChangeEvent event){
        getLogger
      ().debug("Inside listShuttleListener(ValueChangeEvent event)");
        
      HtmlListShuttle listShuttle = (HtmlListShuttle)event.getComponent();
        getLogger
      ().debug(((List<String>)listShuttle.getTargetValue()).toString());
        getLogger
      ().debug(((List<String>)listShuttle.getSourceValue()).toString());
        avlblRptClmn
      = (List<String>)listShuttle.getSourceValue();
        selectedRptClmn
      = (List<String>)listShuttle.getTargetValue();
        getLogger
      ().debug("End listShuttleListener(ValueChangeEvent event)");
      }



      if SourceValue row is less than 17 its working fine in both Tomcat and Websphere, if its is more than 17, in websphere alone its not working, listShuttleListener method not called. I am struggling with this more than 3 days, some one pls help me.

       

      am using richfaces-api-3.3.3.Final.jar