Al Maw wrote:
> 
> This is quite easy, actually.
> 
> Create an abstract ResolutionDependentPage extends WebPage which your 
> pages will extend.
> 
> Add this method:
> 
> @Override
> public String getVariation() {
>      WebClientInfo info =
>              (WebClientInfo)getRequestCycle().getClientInfo();
>      ClientProperties p = info.getClientProperties();
> 
>      // Defaults to -1 if not available (JS disabled).
>      int width = p.getScreenWidth();
> 

Thanks for grate example! I really appreciate it!!

Artur
-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-diffrent-markup-files-tf4848523.html#a13877574
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to