In WebObjects, I think this is the WOSwitchComponent -
where you can specify the component name to be rendered/substituted
as a binding.
I don't believe such a dynamic component exists in Tapestry.
(In 3.x) I've resorted to @If / @If / @If .. to implement solution
(bleh).
I didn't try @Delegator.
Please share if you find a smoother solution.
Thanks-Matt
On Nov 1, 2006, at 16:06 , Moritz Gmelin wrote:
Hi,
I'd like to create a tapestry page that contains component based on
the user's settings that are stored in a database. So components
should be created dynamically.
There are many postings that suggest usage of RenderBody /
RenderBlock combinations or usage of @If conditions.
I don't like this Idea because this looks not very flexible.
Is this something that is not possible at all (or not suggested)
with tapestry?
Is the @Delegator component a way to go ?
How can I create a concrete instance of an abstract BaseComponent
subclass ?
Thanks for any clues.
Moritz Gmelin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]