In my Seam application, I have a Seam component that returns a (@Datamodel
) list of items I want to transform into a set of <li>
HTML elements. I have this working without a problem.
But now, I want to split up the list according to an EL expression. So the EL expression determines if a new <ul>
element should be started. I tried the following:
<s:fragment rendered="#{action.isNewList(index)}">
<ul>
</s:fragment>
<!-- stuff that does the <li>'s goes here -->
<s:fragment rendered="#{action.isNewList(index)}">
</ul>
</s:fragment>
But that's invalid, because the nesting for <ul>
is wrong.
How should I do this?