I would like to show some Strings in a <tr:table>

I tried the following with an ImageBean.java ..
  public List<String> getAllImages()
  {
      List<String> images = new ArrayList<String>();
      images.add("image01");
      images.add("image02");
      images.add("image03");
      return images;
  }

and would like to access it like this.
                <tr:table var="row" value="#{ImageBean.getAllImages}">
                    <tr:column>
                        <tr:outputText value="#{row[0]}"/>
                    </tr:column>
                </tr:table>


Is there an easy way to do this?

Reply via email to