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

    rich:listshuttle - targetValue is null in bean class

    Bala Chithirai Newbie

      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}">
      <h:outputText value="#{items}"></h:outputText>
      <a4j:support event="onorderchanged" reRender="rptColumn" status="waitStatus" ajaxSingle="true" limitToList="true"/>
      <a4j:support event="onlistchanged" reRender="rptColumn" status="waitStatus" ajaxSingle="true" limitToList="true"/>



      bean method :


      public void listShuttleListener(ValueChangeEvent event){
      ().debug("Inside listShuttleListener(ValueChangeEvent event)");
      HtmlListShuttle listShuttle = (HtmlListShuttle)event.getComponent();
      = (List<String>)listShuttle.getSourceValue();
      = (List<String>)listShuttle.getTargetValue();
      ().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