1 Reply Latest reply on Oct 13, 2008 11:35 AM by Ilya Shaikovsky

    ListShuttle onlistchanged  event listener error

    Abhilash K Newbie

      I am getting the following error when using ListShuttle to copy items from source to target. While onlistchanged event is triggered, a listener is invoked.

      sourceId=categoryInfoView:specForm:shuttle[severity=(ERROR 2), summary=("Component categoryInfoView:specForm:shuttle has invalid value expression com.sony.pm.commons.beans.CategoryFeature@b08ba7"), detail=("Component categoryInfoView:specForm:shuttle has invalid value expression com.sony.pm.commons.beans.CategoryFeature@b08ba7")]


      Actual code used in implementation


      <a4j:form id="specForm" ajaxSingle="true">





      <rich:listShuttle sourceValue="#{categoryBean.sourceSpecifications}"

      targetValue="#{categoryBean.targetSpecifications}" var="items" listHeight="300"

      listWidth="300" sourceCaptionLabel="Available Items"

      targetCaptionLabel="Currently Active Items"

      converter="categoryFeatureConverter" id="shuttle">

      <rich:column>

      <h:outputText value="#{items.name}"></h:outputText>

      </rich:column>

      <a4j:support event="onlistchanged" reRender="items" actionListener="#{categoryBean.valueChangeListener}"/>

      </rich:listShuttle>





      </a4j:form>





      public void valueChangeListener(ValueChangeEvent evt)

      {

      if(log.isDebugEnabled())

      log.debug("Value Change Listener : "+evt.getNewValue());

      }