You can change your border component:

<span jwcid="@Conditional" condition="ognl:printer">
  printer layout...
  <span jwcid="@RenderBody"/>
</span>

<span jwcid="@Conditional" condition="ognl:printer" inverse="ognl:true>
  Normal layout...
  <span jwcid="@RenderBody"/>
</span>

now the printer method can access a state object, a page property or whatever.



 Will Scheidegger:
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]

Reply via email to