We have had a redirect to a 'mobile' site, but no actual mobile site has
actually existed yet. We have been working on creating a mobile friendly
site for this task, and have some good progress on it. Its not perfect
and has a lot of limitations (and lots of hacks) but I think its time to
get some feedback on how it currently setup and how we can move forward
to get this working better and improved. There are some things that we
should be able to change in the core GateIn code to get things working
better and allow us to remove some of the hacks we had to use.
The current code resides at
https://github.com/mwringe/gatein-portal/tree/mobile and I have created
a PR (
https://github.com/gatein/gatein-portal/pull/346)
A couple of points:
- the mobile site is deployed as an extension on AS7 (currently don't
know how this should be handled in tomcat). So you wont see the mobile
site if you are not running on JBoss AS7.
- redirects are no longer configured in gatein by default. The mobile
extension adds in default redirection rules. If you are using a mobile
device, you should be automatically redirected to the mobile site
instead of the 'classic' site.
- the site is designed to be fluidly responsive. Try changing the width
(and height) of the page to noticed the changes.
- mobile specific components are located in their own mobile-integration
module. I have tried to keep as much of the code as separate from the
other main gatein code.
- the shared layout has been set as hidden when using the mobile site,
we have a header portlet which takes care of a lot of similar functionality.
- its still uses some of the original webui components (but skinned
differently, ie language selector, login, etc...) but most of the
portlets on the page are newly rewritten portlets.
- we don't currently have any plans on rewriting all the admin portlets,
so administration functionality has to be done from the classic portlet
using things like the portal and site navigators.
- its still a work in progress and there is still a lot of work to do to
get it working better.
Looking forward to opinions and comments. More updates to follow soon,
Thanks,
Matt Wringe