incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naresh Bhatia" <>
Subject Generating links with request parameters in a <tr:forEach> loop
Date Fri, 24 Nov 2006 16:01:55 GMT
I am trying to generate links with request parameters in a <tr:forEach>
loop. Here's the desired output:

<a href="/forums/ShowForum.jsf?forumId=1">Forum 1</a> <br/>
<a href="/forums/ShowForum.jsf?forumId=2">Forum 2</a> <br/>
<a href="/forums/ShowForum.jsf?forumId=3">Forum 3</a> <br/>

What is the easiest way to do this? I have tried the following:

        <tr:forEach var="forum" items="#{forumListBean.forums}">
                <f:param name="forumId" value="#{}" />
                <h:outputText value="#{forum.title}" />

This simply produces:

<a href="/forums/ShowForum.jsf?forumId="></a>

Obviously, the forum id and forum title are not substituted.


View raw message