That's probably a good point. I've NEVER used t:dataList in a mode
other than simple. It would make sense to improve the example.
I'll open a JIRA issue.
On 4/6/07, Alec Swan <[EMAIL PROTECTED]> wrote:
I thought that t:dataList can only list text entries because that was all
examples/dataList.jsp was showing.
Thank you for the code snippet.
On 4/5/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> t:dataList can list whatever you like. Why do you think it can only
> list text entries?
>
> t:dataList in basic form is simply an iterator -- you can render
> whatever you like on each iteration.
>
> Actual code from one of my older projects:
>
> <t:dataList
rendered="#{0 != jstl:length(announcement.contentList)}"
>
layout="simple"
> value="#{
announcement.contentList}"
>
var="content">
>
<h:commandLink
>
action="#{
editAnnouncementsPage.gotoAnnouncementContentListRelationship}"
>
value="#{content.UIDisplayLabel}"/>
> <br/>
> </t:dataList>
>
> In a more modern project, I'd use f:setPropertyActionListener (or
> t:updateActionListener under jsp) to pass the value to the next page.
>
>
> On 4/5/07, Alec Swan < [EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am using the lates MyFaces, Facelets and Tomahawk releases.
> >
> > I need to display a list of hyperlinks, which will work similar to a
menu.
> > When a user clicks on a link the page refreshes with the information
related
> > to the clicked link.
> >
> > For example, suppose I have a list of products supplied by the backing
bean.
> > I would like to list links to each product page in a row. When the user
> > clicks on the link the page gets refreshed with the product information.
> >
> > I looked at t:dataList, but it seems that it can only list text entries
and
> > not links.
> >
> > 1. What is the right way to do this?
> >
> > 2. Is there a way to avoid appending product id to the URL and instead
store
> > it in the user session when the link is clicked?
> >
> > 3. Are there any related examples I can look at?
> >
> >
> > Thanks.
>