If you've got the components you want somewhere else on a template, you
can always use Block/RenderBlock. That involves setting up @Block areas
for each possible content and putting a @RenderBlock in the target
area. Then you just need a method to wire up the RenderBlock's block
attribute.
I don't know enough about tapestry internals to say if this is a good
idea, but I've played around with DynamicBlock and your solution looks a
lot simpler. At a guess, it looks like your approach is setting up your
dynamic component when tapestry is loading the page template. If it's
part of
Darn you're right, I've never even thought of that. finishLoad(), which I'm
overriding to add the new implicit component, is called only once before the
page gets cached. So basically, my dynamic component is only dynamic the
first time template loads.
The reason I chose this method is that if
Hi all,
I'm trying to find a way to have the Delegator component use some other
component with a template (chosen at runtime) to render output, and the
closest I found was using PageLoader's createImplicitComponent() function.
Is this correct for my intent? Are there more proper means of