Hi,
The way I do this is to use the style attribute in the wicket session.
Wicket's default ResourceStreamLocator looks for files with the pattern
filename_style_locale.html and falls back to filename.html

So I have a RequestCycleListener that decides based on headers what type of
a request it is, and sets the style on the session, say for ex. "mobile". 
Wicket in turn serves pages TemplatePage_mobile.html if it finds it,
otherwise it falls back to TemplatePage.html
So I can contribute the mobile.css and have a complete custom mobile view of
the page in a customized _mobile.html if I need to, otherwise the same
version used for desktop is being served.

-----
http://balamaci.wordpress.com 
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/adjust-my-web-application-for-smartphone-like-iPhone-tp4235060p4236699.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to