users@woodstock.java.net

displayng a news

From: Antonin Karasek <tonda_at_ceskyserver.cz>
Date: Fri, 21 Nov 2008 10:01:43 +0100

Hi,
I'm building my first Visual JSF project. Now, I need to display news.
Seems like a simple task ;-) But I haven been able to find a JSF tag,
which does a cycle. I think, I need something like this:

<webuijsf:usefulTag sourceData="#{SessionBean1.news}" sourceVar="news">
<h2><webuijsf:staticText text="#{news.value['title']}"/></h2>
<p><webuijsf:staticText text="#{news.value['text']}"/></p>
</webuijsf:usefulTag>

Of course - I can generate the content in backing bean - but I think,
that it's not a nice solution.

And - of course - I should use <webuijsf:markup > instead of <h2> or <p> :o)

Is there any such tag?

Is there any other "nice" solution?

Many thanks

Regards
        Tony