Re: How to support multiple themes in Wicket application.

2010-06-19 Thread Duy Do
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 
russellsimpk...@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=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4



Re: How to support multiple themes in Wicket application.

2010-06-15 Thread wicketyan
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.

2010-06-15 Thread Chris Colman
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:doquoc...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Alex Rass
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:chr...@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:doquoc...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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



RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Russell Simpkins

 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=multiaccountocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4

How to support multiple themes in Wicket application.

2010-06-14 Thread Duy Do
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