0 Replies Latest reply on Feb 14, 2008 4:50 AM by kavi arasu

    to persist targetValue of rich:listShuttle

    kavi arasu Newbie

      Hi
      i try to use rich:listShuttle
      im getting the output i need but how to get the values in the target value to bean
      when i try i get error ..
      the error message is

      javax.el.PropertyNotFoundException: /Hotdeals.xhtml @81,60 value="#{items.productName}": Property 'productName' not found on type java.lang.String



      i pasted my coding here

      @Begin(join=true)
       public String AddStore1()
       {
      
       for(int j=0;j<getproducts.size();j++)
       {
       System.out.print("....................................."+getproducts.get(j).toString());
       }
       return "/Hotdeals.xhtml";
       }



      <rich:listShuttle sourceValue="#{addhotproduct.getproducts1}"
       targetValue="#{addhotproduct.getproducts}" var="items" listHeight="300" listWidth="300"
       sourceCaptionLabel="Available"
       targetCaptionLabel="Currently in List">
      
       <rich:column>
       <h:outputText value="#{items.productName}"></h:outputText>
       </rich:column>
       </rich:listShuttle>
       <h:commandButton action="#{addhotproduct.AddStore1}" value="Add" />



      thanks and regards
      kaviarasu