You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alex Chew <ch...@gmail.com> on 2008/12/17 04:19:38 UTC

How can we make runtime templates switching?

Hi, all

I think i fall in troubles with template switching during runtime.

Formerly we build the whole application with default template using markup
inheritance.
Unfortunately,we are requested to support runtime templates switching .
In other words, our customer want to use different templates to fit their
needs with setting but not developing.
The final effective is just like joomla!'s template managment.

The problem is,
We using EXTENDS to support default template with markup inheritance.
But we cannot change base class while in runtime.

Can anybody show me the light? Any advice will be appreciated.
Thanks in advance.

BR,
Alex

Re: How can we make runtime templates switching?

Posted by Igor Vaynberg <ig...@gmail.com>.
see component#getvariation() and component#getstyle(). there is also a
wiki page that talks about skinning.

-igor


On Tue, Dec 16, 2008 at 7:19 PM, Alex Chew <ch...@gmail.com> wrote:
> Hi, all
>
> I think i fall in troubles with template switching during runtime.
>
> Formerly we build the whole application with default template using markup
> inheritance.
> Unfortunately,we are requested to support runtime templates switching .
> In other words, our customer want to use different templates to fit their
> needs with setting but not developing.
> The final effective is just like joomla!'s template managment.
>
> The problem is,
> We using EXTENDS to support default template with markup inheritance.
> But we cannot change base class while in runtime.
>
> Can anybody show me the light? Any advice will be appreciated.
> Thanks in advance.
>
> BR,
> Alex
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How can we make runtime templates switching?

Posted by Alex Chew <ch...@gmail.com>.
Yes,I got it.
Border works well

Thanks
Alex

Re: How can we make runtime templates switching?

Posted by kan <ka...@gmail.com>.
Also you can use borders instead of panels, they allow to replace
inheritance by aggregation.

2008/12/17 Alex Chew <ch...@gmail.com>:
> Hi, all
>
> I think i fall in troubles with template switching during runtime.
>
> Formerly we build the whole application with default template using markup
> inheritance.
> Unfortunately,we are requested to support runtime templates switching .
> In other words, our customer want to use different templates to fit their
> needs with setting but not developing.
> The final effective is just like joomla!'s template managment.
>
> The problem is,
> We using EXTENDS to support default template with markup inheritance.
> But we cannot change base class while in runtime.
>
> Can anybody show me the light? Any advice will be appreciated.
> Thanks in advance.
>
> BR,
> Alex
>



-- 
WBR, kan.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org