http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/RenderBlock.html
On 6/29/06, Paul Tongyoo <[EMAIL PROTECTED]> wrote:
Hello all!
I'd like to define a generic "component placeholder" that does not have
any
specific type at compile time. Something like:
<span jwcid="@ComponentContainer" component="ognl:someComponent>Component
Placeholder</span>
All the ComponentContainer would do is render the component that it's
passed...
<component-specification>
<parameter name="component" required="yes" />
<!-I do NOT want to specify the 'type' attribute here because
it
can vary -->
<component id="ComponentDisplay" property="component" />
</component-specification>
ComponentContainer.HTML: <span jwcid="ComponentDisplay">Component
displays
Here</span>
However Tapestry complains that the type of component isn't specified in
the
ComponentContainer.jwc. I also cannot pass an OGNL expression as the
'type'
attribute value. Has anyone tried doing something similar - essentially
swapping different components into a component placeholder at runtime?
Thanks all for advice!
Paul
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.