Hi all,

I'm about to start work on a project for which the clients will mainly
be mobile phones. It's just a simple message board; the server side code
will be straightfoward enough.

The main issue with mobile phone browsers, though, is that every one of
them is different and has its own set of daft quirks. For example, Sony
Ericssons tend to oversize text, some Nokia's struggle with CSS floats,
Blackberrys are... godawful.

To solve this I was thinking of adding a service into Tapestry a bit
like the localization. Given the user agent, I can work out what device
profile to show (eg, "nokia_n95") then use that to choose a template not
unlike the way localization currently works. So it'd choose
HomePage_nokia_n95.tml to run or something.

If, however, I don't want to completely rewrite the template for every
profile, say the changes are only minor (this will be most cases), then
I'd want a way to change the template before rendering on the fly. For
example, replacing "p" tags with "span class=nokia_paragraph".

I'm sending this email to the list becase firstly, I was wondering if
anyone has any experience doing something like this with Tapestry or
even any other framework.

Secondly, does anyone have any pointers for what sort of services and
interfaces I'd have to contribute? I need something that can choose a
template before rendering for the first case and for the second, I might
need a custom markup writer or something? Then I could perform a quick
lookup for the "write" methods and replace the elements written to the
final page?

Many thanks in advance,
Carl


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

Reply via email to