How easy is this to do?

I want a component that displays, with attractive html such as in a border or something, a group of items. I'm thinking each item should be a component itself, but correct me if I'm wrong there. If there are more than one item to be rendered, the main component should display a heading "These are the items", and if only one, then it should say "This is the item.". And if there are none that should be rendered, then the component should not render at all.

Oh, and each item has a parameter that might cause it to not render itself. So the main component needs to know how many will be rendered, not just how many there are in the .tml file.

Right now I'm staring at the code of the class AbstractConditional, in the beginRender method, hoping to find some inspiration. But maybe someone on this list has a better idea. Anyone?

Thanks.

--
Tim Koop

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to