You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Duy Do <do...@gmail.com> on 2010/06/15 06:05:05 UTC
How to support multiple themes in Wicket application.
Hi all,
I would like to support multiple themes in Wicket application like
Wordpress, Drupal. Could you please give me suggestion?
Thanks and regards,
Duy
Re: How to support multiple themes in Wicket application.
Posted by Duy Do <do...@gmail.com>.
I would like to support different layout structure, not only CSS.
I will follow your help and try to do it. Thank you for your help, I really
appreciated it.
Duy
On Tue, Jun 15, 2010 at 5:40 AM, Russell Simpkins <
russellsimpkins@hotmail.com> wrote:
>
> > I would like to support multiple themes in Wicket application like>
> Wordpress, Drupal. Could you please give me suggestion?
> I would make sure that every element has "class" set. I would also
> recommend always setting component.setMarkupId(String id) for your
> components so that you can style on ID and Class. Then you can play around
> with setting the name of the selected stylesheet in the application session
> store.
> Russ
>
>
>
>
> _________________________________________________________________
> The New Busy is not the too busy. Combine all your e-mail accounts with
> Hotmail.
>
> http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
>
RE: How to support multiple themes in Wicket application.
Posted by Russell Simpkins <ru...@hotmail.com>.
> I would like to support multiple themes in Wicket application like> Wordpress, Drupal. Could you please give me suggestion?
I would make sure that every element has "class" set. I would also recommend always setting component.setMarkupId(String id) for your components so that you can style on ID and Class. Then you can play around with setting the name of the selected stylesheet in the application session store.
Russ
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
Re: How to support multiple themes in Wicket application.
Posted by wicketyan <wi...@gmail.com>.
I have not try it.but wicket component doc say supporting:
Style - The style ("skin") for a component is available through getStyle(), which is equivalent to getSession().getStyle(). Styles are intended to give a particular look to a Component or Resource that is independent of its Locale. For example, a style might be a set of resources, including images and markup files, which gives the design look of "ocean" to the user. If the Session's style is set to "ocean" and these resources are given names suffixed with "_ocean", Wicket's resource management logic will prefer these resources to other resources, such as default resources, which are not as good of a match.
2010-06-15
wicketyan
发件人: Duy Do
发送时间: 2010-06-15 12:05:59
收件人: users
抄送:
主题: How to support multiple themes in Wicket application.
Hi all,
I would like to support multiple themes in Wicket application like
Wordpress, Drupal. Could you please give me suggestion?
Thanks and regards,
Duy
RE: How to support multiple themes in Wicket application.
Posted by Alex Rass <ar...@itbsllc.com>.
You guys should check out this site:
http://www.csszengarden.com/
Note the links on the right. Click them - they'll turn same site into a
completely different themes (not even close) by using nothing but CSS.
So if you code your site right for CSS, swapping/adding themes should be a
no-brainer!
- Alex
-----Original Message-----
From: Chris Colman [mailto:chrisc@stepaheadsoftware.com]
Sent: Tuesday, June 15, 2010 4:56 AM
To: users@wicket.apache.org
Subject: RE: How to support multiple themes in Wicket application.
It depends on whether your themes can be purely defined by styles or whether
some layout changes are also required to support different themes. Often our
themes have required some layout changes in combination with style changes
and so we use markup 'variations' to handle that.
>-----Original Message-----
>From: Duy Do [mailto:doquocduy@gmail.com]
>Sent: Tuesday, 15 June 2010 2:05 PM
>To: users@wicket.apache.org
>Subject: How to support multiple themes in Wicket application.
>
>Hi all,
>
>I would like to support multiple themes in Wicket application like
>Wordpress, Drupal. Could you please give me suggestion?
>
>Thanks and regards,
>Duy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: How to support multiple themes in Wicket application.
Posted by Chris Colman <ch...@stepaheadsoftware.com>.
It depends on whether your themes can be purely defined by styles or
whether some layout changes are also required to support different
themes. Often our themes have required some layout changes in
combination with style changes and so we use markup 'variations' to
handle that.
>-----Original Message-----
>From: Duy Do [mailto:doquocduy@gmail.com]
>Sent: Tuesday, 15 June 2010 2:05 PM
>To: users@wicket.apache.org
>Subject: How to support multiple themes in Wicket application.
>
>Hi all,
>
>I would like to support multiple themes in Wicket application like
>Wordpress, Drupal. Could you please give me suggestion?
>
>Thanks and regards,
>Duy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org