2 Replies Latest reply on Aug 20, 2008 1:15 AM by goompas

    a4j:repeat and h:outtext

    goompas

      Hello
      I have ArrayList of strings. I wanna show these arraylist on the page

      <a4j:repeat value="#{BeanListy.tprefixy}" var="item" rowKeyVar="key" >
       <h:outputText value="Index: #{key}"/>
       <br>
       <h:outputText value = "#{BeanListy.tprefixy}" />
       </a4j:repeat>
      
      


      tprefixy is ArrayList
      Now its show me as output:

      [a,b,c,d,e,f]
      [a,b,c,d,e,f]
      [a,b,c,d,e,f]
      [a,b,c,d,e,f]
      [a,b,c,d,e,f]
      [a,b,c,d,e,f]

      But i waana show

      a
      b
      c
      d
      e
      f

      How do it? Key is show good

      1
      2
      3
      4
      5
      6