Monday, November 26, 2007

Netbeans visual webpack, loops and condition in pages

It seems that there is no built-in way to have a loop statement or a if statement in the jsf library that comes with netbeans visual webpack (prefix webuijsf: and f:). So imagine you have an array of Strings in your session and want to render a list of buttons that have these Strings as text, well you can't do it with the provided libraries. The other idea was to use a table, but it's documentation explicitely states:
" If your application needs to iterate over the same components as in jato:tiledView, use a custom tag. The JSP Standard Tag Library (JSTL) forEach tag might also be useful, but there are interoperability issues with JSTL and JavaServer Faces, so use with caution."
So I guess custom tag it will be...

No comments: