13 Replies Latest reply on Mar 4, 2011 12:07 PM by Ilya Sorokoumov

    Display list of values horizontally using rich:dataList

    Vani d Newbie

      Hi, I'm new to JSF. Please help me with the following. I need to display values horizontally when I select an activity from drop down. The list of values should display in a single row, and these values vary. I am getting the results vertically.

       

      Here is the code:

       

      <rich:dataList value="#{ActivitySummaryBean.Activities}" var="activity">

                                       <h:panelGroup>

                                              <h:outputText value="#{activity.lane}"></h:outputText>

                                       </h:panelGroup>

       

                                  </rich:dataList>

       

      I need to get the output as:(these values will increase or decrease according to the activity selected)

       

      1  2  3  4  5 

       

      But Im getting

       

      1

      2

      3

      4

      5

       

      I also tried

      <ul>

          <ui:repeat items="#{ActivitySummaryBean.Activities}" var="activity">

              <li> <h:outputText value="#{activity.lane}"/></li>

          </ui:repeat>

      </ul>  

       

      but no luck

       

       

      Thanks

      sd