That might work. It would require a third component though. I was
hoping that there was something like WebObjects WOSwitchComponent where
you can provide a component name as binding and it will instantiate the
appropriate component at runtime.
-Will
On 13.07.2005, at 12:13, Pedro Abelleira Seco wrote:
What about some code like this:
RegularView.html:
<span jwcid="@Conditional" condition="xxx1">
<span jwcid="@Border1"><span jwcid="@RenderBody"/></span>
</span>
<span jwcid="@Conditional" condition="xxx2">
<span jwcid="@Border2"><span jwcid="@RenderBody"/></span>
</span>
<span jwcid="@Conditional" condition="xxx3">
<span jwcid="@Border3"><span jwcid="@RenderBody"/></span>
</span>
where condition is evaluated at runtime?
El Mér, 13-07-2005 a las 12:00 +0200, Will Scheidegger escribió:
I've got a "RegularView" component that is being wrapped around a
BasePage subclass with the RenderBody component. This RegularView
component makes up the page frame, is responsible for the navigation
and so on.
Now I would like to display the same content with a different
component
wrapped around it - a printer friendly view without the navigation and
other stuff. Is there any way to choose at request time what component
to wrap around a BasePage subclass?
Cheers,
Will
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]