Hi Julien,

Since a x:datalist do not have columns you may not use h:column in a
datalist.

<x:dataList value="#{AlbumsAction.albums}" var="item"
  layout="unorderedList">
    <h:outputText value="#{item.value.album_date}"/>
</x:dataList>

Mathias

> -----Original Message-----
> From: Julien Martin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 25, 2005 5:00 PM
> To: MyFaces Discussion
> Subject: x:dataList component
> 
> 
> Hello,
> 
> I use the x:dataList component. Note that I want to display a 
> hashmap. Using
> the forEach tag I would have something like that:
> [code]
>  <c:out value="${item.value.album_date}"/>
> [/code]
> 
> but because I use the x:dataList I have a h:outputText 
> instead of the c:out.
> Here it is:
> 
> [code]
> <h:outputText value="#{item.value.album_date}"/>
> [/code]
> 
> This does not seem to work. I just get the list's bullet with 
> nothing else.
> Here is the full code:
> 
> [code]
> <x:dataList value="#{AlbumsAction.albums}" var="item"
> layout="unorderedList">
>    <h:column>
>      <h:outputText value="#{item.value.album_date}"/>
>   </h:column>
> </x:dataList>
> [/code]
> 
> Can anyone help please?
> 
> Thanks in advance,
> 
> Julien.
> 
> 
> 

Reply via email to