I try to implement a component to let a user choose a category in a tree.
So, i would like to show him at each level of the tree the subcategories
in a combobox.
My problem is that i don't know at compile time the depth of the tree.
That's why i thought that each node of the tree of categories could have
been a tapestry component which present the children of the current
category to the user ... and that leads to recursivity !
--
Stéphane Decleire
Cariboo Networks SARL
05 56 57 99 20 / 06 63 78 69 06
www.bebe-nounou.fr
RonPiterman a écrit :
AFAIK this can not be done directly, but there are solutions for
different problems like displaying a tree using recursion on the model
level - what exactly are you trying to achieve?
Cheers,
Ron
Stephane Decleire wrote:
Hi,
I wonder if there is a way for a tapestry component to include itself
(in a recursive way).
Despite I have in my template a condition to exit from this infinite
loop, it ends up in a stack overflow error.
I suppose tapestry goes in an infinite loop when it tries to
instanciate the components for the page :-( (far before reading my
template).
Has anybody achieved such an implementation ?
--
Stéphane Decleire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]