title: Does f:attribute support other things than String?
body: <p>I have the need to implement an <code>ice:commandButton</code> that passes a list to its backing bean. I'm not in a portlet scope, but in a tag scope.</p>
  
  <p>I know that when I retrieve an <code>f:attribute</code> from the actionListener I get an object that has to be casted.</p>
  
  <p>I want to know if I can map f:attribute to a <code>List&lt;MyClass&gt;</code>, where the actual instance of the list is <em>actually</em> an <code>ArrayList</code> and <code>MyClass</code> is serializable.</p>
  
  <p>Something like:</p>
  
  <p>MyTag.xhtml</p>
  
  <pre><code>&lt;ice:commandButton actionListener="#{TagBean.doPrintItems}"&gt;
      &lt;f:attribute name="collection" value="#{items}" /&gt;
  &lt;/ice:commandButton&gt;
  //[other things]
  </code></pre>
  
  <p>MyPortlet.jspx</p>
  
  <pre><code>&lt;my:printPopup items="#{BackingBean.itemsToPrint}" /&gt;
  </code></pre>
  
  <p>BackingBean.java</p>
  
  <pre><code>class BackingBean {
      private List&lt;MyClass&gt; itemsToPrint;
  
      //getter and setter of course
  }
  </code></pre>
  
  <p>TagBean.java </p>
  
  <pre><code>class TagBean {
      private List&lt;MyClass&gt; collection;
  
      //getter and setter of course
      public void doPrint(ActionEvent e) {
          collection = (List&lt;MyClass&gt;) e.getComponent().getAttributes().get("collection");
      }
  </code></pre>
  
  <p>Do you think this is feasible? Thanks</p>