|
Page Edited :
WICKET :
Mobile Devices
Mobile Devices has been edited by Philip A. Chapman (Apr 05, 2007). Content:Table of contents Targeting Mobile DevicesUnfortunately, there is no real mobile-language. It's usually done using various levels of HTML depending on device and some special CSS (also dependent on the device). If you want to have a standard website which is also usable with mobile devices then your key to success is clean HTML + individual CSS files for the target environment. Some links to get started: These pages should give you a way to understand how to achieve best coverage for various devices. Using Markup InheritanceYou can use markup inheritance to create a main-page and then extend it in the flavors of the possibilities of the mobile devices... but also think: you are better Using Varying Versions of HTML PagesIn addition to allowing you to use markup inheritance, Wicket supports different styles, localizations and variations for one given Java page/panel. MyPage.java can have many different HTML files:
The order of style, variation and language could be different. The only thing you need to do in this case is to keep the component hierarchy in sync between the different markup files. Determining Mobile Device CapabilitiesYou can provide a custom request cycle and override newClientInfo to plugin your client capabilities (and e.g. call Session#setStyle accordingly). See also wicket.examples.hellobrowser |
Unsubscribe or edit your notifications preferences
