Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick <alfie.kirkpatr...@ioko.com> escreveu:

Am wondering about ways to support this scenario cleanly in T5, where
visual layout is very different per device but the page classes could be
quite similar (clearly this depends to a large extent on whether devices
have radically different page flows and layouts).

CSS solves most of the solution. Take a look at media queries (http://www.w3.org/TR/css3-mediaqueries/). Regarding Tapestry itself, for issues that can't be solved by using CSS itself, I would take advantage of the layout component pattern (some parts of the template could be omitted or replaced) and having a service and a component to tell me what kind of device did the request.

Most browsers today, even Opera Mini (for simple mobile phones), can deal with pages that weren't written for small devices and/or resolutions, so this isn't much of an issue IMHO.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to