Could someone explain the meaning of the string argument to Session.setStyle()? Unfortunately, the javadocs give no clue, other saying that a "skin" can be used. Is the string the name of a stylesheet file, or something else?
Note to Wicket team: The Wicket Javadocs are woefully inadequate. Time invested in fleshing them out would be well spent & would prevent a lot of questions like this. From: Wilhelmsen Tor Iver <toriv...@arrive.no> To: "users@wicket.apache.org" <users@wicket.apache.org> Date: 02/13/2012 02:07 AM Subject: RE: Serving different content depending on User Agent > I would like to know what is the best way to serve slightly different content depending on the User Agent string coming from the browser. You can pick it up in Application.newRequestCycle() or WebApplication.newWebRequest(), and use it to pick a value for Session.setStyle() and then use that style in your template- and resource names. For more advanced selection of content, use the selected value in a custom URL mapper. - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **