Any recursion can be unwound into a loop, and that's the best way to handle things for the moment, I expect.

Christian.

On 4-Nov-08, at 14:45 , Howard Lewis Ship wrote:

Supporting recursive components is a little tricky, in terms of managing internal state of the component while it renders and re-renders. Right now you can a specific "components can't be recursive" error. In the future (5.1
or beyond) this may be supported, though it may require some extra
gymnastics triggered by an annotation. Tthe extra gymnastics will store and restore state before and after the component renders recursively ... because
of the expense, a special annotation may be needed.

On Tue, Nov 4, 2008 at 5:09 AM, Thiago H. de Paula Figueiredo <
[EMAIL PROTECTED]> wrote:

Em Tue, 04 Nov 2008 08:25:23 -0300, oliverlee000 <[EMAIL PROTECTED] >
escreveu:

i am writing a unlimited level css tree menu for my project, i need to
output the dl dd dt tags to my html, as i know, in order to support unlimitd level menu,need use recursion function, any way to achieve this by useing t5
component in tml?


Tapestry 5 does not allow recursive rendering of components. More
information here:
http://tapestry.apache.org/tapestry5/guide/rendering.html, section
"Rendering components".

Instead of using recursion in the template, use recursion in the
component's code: generate your menu using a MarkupWriter.

Why dl/dd/dt tags instead of ul/li? Just curious. :)

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to