myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: how to get ordered list to work? problems with dataList
Date Tue, 12 Jun 2007 18:14:39 GMT
You told data list to put two pieces of text in each loop of "Item1 Item2"

You want the equivalent of:

public String[] getItems() { return new String[] { "Item1", "Item2" }; }

<t:dataList var="_item" value="#{myBean.items}" layout="orderedList">
  <h:outputText value="#{_item}" />
</t:dataList>

On 6/12/07, SiSi'mon <s_simon@purpleblade.net> wrote:
>
> I have the following:
>
> ---
>     <t:dataList id="String"
>                 styleClass="my-text"
>                 itemStyleClass="my-text"
>                 var="String"
>                 value="List"
>                 layout="orderedList"
>                 rowCountVar="int"
>                 rowIndexVar="int">
>
>         <h:outputText
>                 value="Item1"/>
>
>         <h:outputText
>                 value="Item2"/>
>     </t:dataList>
> ---
> With this I get the following on the web page:
>
> 1.  Item1Item2
>
> any ideas why Item2 is not put on a new line like
> 2.  Item2
>
> ??
>
> thanks
>
>
> Si'mon
> --
> View this message in context: http://www.nabble.com/how-to-get-ordered-list-to-work--problems-with-dataList-tf3909067.html#a11083805
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message