Re: How can we make runtime templates switching?
Yes,I got it. Border works well Thanks Alex
Re: How can we make runtime templates switching?
Also you can use borders instead of panels, they allow to replace inheritance by aggregation. 2008/12/17 Alex Chew : > 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How can we make runtime templates switching?
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 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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