Hi,
Thanks for the inputs. As a result of the suggestions here and our
evaluation, we have drafted mobile device support for templates as
below;
We will use the view selection mechanism. We would like to propose to
add a new attribute for user-agent (or particularly we prefer to use
device). We prefer a new attribute definition instead of using a
suffix to views. So slightly modifying Lev Epshteyn’s example;
<Content view="default"/> and
<Content view="default" device=”iphone” /> or
<Content view="default" device=”ie6”/>
The same attribute will be used at template level, too. Templates can
be customized according to device capabilities. This attribute can be
used in expressions for incorporating minor variations into template.
Secondly we would like to discuss the issue of identifying and
grouping devices using a hierarchy.
In mobile development we need to define a hierarchy among devices. A
developer may need to target a specific device and optimize the UI for
the capabilities of this device. While some other developer may chose
to support a family of devices without going into device specific
optimizations. Even an iphone has several versions each having minor
variations, and for other phones these variations may effect UI
significantly.
We plan to use a device database and group these devices into
hierarchies. So when a device makes a request container will look
through this device in DB and it also finds the several levels of
groups that device belongs to. And by matching the device or the group
with template’s device definition, container will render the most
suitable available template for that device.
An example;
A template is optimized for iphone ver.3, while most other templates
are only supporting iphone generic UI. Container can recognize iphone
ver.3 and renders the first template for ver.3. Moreover iphone ver.3
falls back to group iphone_generic and container renders other
templates that have views defined for iphone accordingly. There may be
many levels of hierarchy, so a Nokia E90 for example falls back to
nokia_eseries, and then to nokia_smartphones_generic. So that a
template can chose to target any level in the hierarchy.
There is such an open source, community prepared device repository
called WURFL (WURFL only covers mobile devices). But there are also
commercial repositories and products.
So for standardization among containers, we propose that at least a
top level generic device definition is needed, say for at least
identifying user agent as a mobile device, or a pc or some other non
standard device. The rest of the repository is optional and containers
may implement their own or use any available device repository, if
they are keen on supporting many devices as accurate as possible.
We are open to any suggestion or input about our proposed way of
supporting mobile devices. We plan to prepare a prototype to implement
our suggestions, and we will of course share it with the community.
Cheers,
Kaan Bingol
On Jun 30, 10:13 pm, Lev Epshteyn <
le...@google.com> wrote:
> Do you mean something like
>
> <Content view="default"/> and
> <Content view="default.ie6"/> or
> <Content view="default.iphone"/>?
>
> On Thu, Jun 18, 2009 at 5:46 PM, Evan Gilbert <
uid...@google.com> wrote:
> > The view selection mechanism sounds promising.
>
> > It would also be useful to define a standard parameter for user-agent which
> > could be used in expressions, for cases in which different UIs or tags have
> > minor browser-based variations.
>
> > On Fri, Jun 12, 2009 at 9:18 AM, Louis Ryan <
lr...@google.com> wrote:
>
> >> Now that templates have generalized expression support from templates
> >> perhaps we could consider using it as a view selector mechanism?
>
> >> On Fri, Jun 12, 2009 at 3:48 AM, Kevin Brown <
e...@google.com> wrote: