Hello all,
I'm working on a Web application that we'd like to be available both
on the desktop and on mobile devices. Our current plan is to try to
build a single application that's the same for both interfaces, but to
instantiate different views depending on which edition is being used,
something like this:
ViewBuilder builder = new MobileViewBuilder(); // or new
DesktopViewBuilder();
...
CustomerListView v = ViewBuilder.build(CustomerListView.class);
rootPanel.getContentPane().addChild(v);
This is similar to the factory pattern you see for the Swing PLAF
system, for example.
The tricky part is this: SmartGWT widgets don't play nicely on most
mobile devices, and all of the fancy desktop behavior depends on
having access to a relevant DataSource. Either we write mobile
implementations of the SmartGWT widgets that we need, or we write the
equivalent of the data bindings for existing mobile widgets.
We're considering going ahead and writing mobile versions of some of
the SmartGWT components (such as ListGrid) so that we can still make
use of the validation and other features of the DataSources. We
called Isomorphic, and they said that while they've been thinking
about such a project, they're not planning on taking it up anytime
soon.
Has anyone here played around with something similar, and does anyone
have an opinion on how well this approach would work?
Christopher Smith
--
You received this message because you are subscribed to the Google Groups "SmartGWT Extensions" group.
To post to this group, send email to
smartgwt-...@googlegroups.com.
To unsubscribe from this group, send email to
smartgwt-extens...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/smartgwt-extensions?hl=en.