2 Replies Latest reply on May 7, 2008 6:39 PM by Madhav Inamti

    Passing lists to backing bean...

    Madhav Inamti Novice

      I am trying to pass a List of Strings to the backing bean. What ends up getting passed is just the first String. Here is my code

      <h:commandButton value="Add Item" styleClass="amazonlist-additem" action="#{amazonSearchHelper.addItem}">
      
      <a4j:support event="onmousedown" immediate="true" ajaxSingle="true">
      
      <a4j:actionparam name="id1" value="#{anItem.itemAttributes.title}" assignTo="#{amazonSearchHelper.selectedAmazonTitle}"/>
      
      <a4j:actionparam name="id2" value="#{anItem.itemAttributes.author}" assignTo="#{amazonSearchHelper.selectedAmazonAuthor}"/>
      
      <a4j:actionparam name="id3" value="#{anItem.itemAttributes.actor}" assignTo="#{amazonSearchHelper.selectedAmazonActor}"/>
      
      <a4j:actionparam name="id4" value="#{anItem.itemAttributes.productGroup}" assignTo="#{amazonSearchHelper.selectedAmazonProductGroup}"/>
      
      </a4j:support>
      
      </h:commandButton>