Rap on mobile devices [message #70189] |
Tue, 15 January 2008 19:16  |
Eclipse User |
|
|
|
Dear RAP developers and users,
First let me congratulate for the fascinating RAP project.
I work in a Spanish bank and we must develop mobile banking and in the
future Internet banking.
We would like to work with rap, but we have some questions:
IE Mobile (and other similar browsers) support RAP?
If this is possible, we need to reduce the traffic between the client and
server. We have found that loading any RAP application requiring about 1
MB.
It is possible to minimize the javascript code? For mobile platform we
only need a small subset of the controls and features supported by rap.
Regards,
Jorge
|
|
|
|
Re: Rap on mobile devices [message #70574 is a reply to message #70250] |
Thu, 17 January 2008 18:03   |
Eclipse User |
|
|
|
Originally posted by: jkrause.innoopract.com
Hi Jorge,
The typical size of the first response to the browser is about 175K. It
is compressed if the browser supports zipped responses, which almost all
browsers do. If the browser does not support zipped responses the
initial size is about 1 megabyte. Subsequent responses are usually very
small (50-2000 Byte).
Looking at RAP and mobile devices there are a few things to explain:
- qooxdoo (with the features we need) has a memory footprint that is
not ideal for devices.
- running a complete workbench on a device leads to a high complexity
on the client side, which consumes resources but provides only little
value due to the restricted screen size.
But if you restrict yourself to some extent RAP should work for you:
As a first step you may want to try running a simple RWT-based app on
your mobile device. I have seen RWT-applications running on Nokia phones.
You can also remove the functionality from qooxdoo that you don't need
(e.g. Tree and Table), this will lead to a smaller client side
footprint. You need to make sure that the corresponding RWT classes are
not being used anywhere. See
http://qooxdoo.org/documentation/0.7/custom_builds and please use the
sources at org.eclipse.rap.rwt/js as a starting point.
If RWT works on the targeted mobile devices you may want to have a look
at eRCP from a conceptual point of view. It provides all the benefits of
modularization, but not the complexity in the UI. I think it shouldn't
be a very big deal to create an "eRAP" based on the eRCP implementation.
Mid-term we will switch to qooxdoo 0.8, which will offer a smaller
footprint, and probably also the possibility to create very lightweight
and targeted UI components close to the browser DOM. DISCLAIMER: I am
not saying that the RAP team will work on those topics soon.
We also plan to move the rendering to a separate layer (fragment), so
that it is possible to use different client side frameworks / technologies.
Please don't hesitate to ask more questions on this forum, RAP on mobile
devices is absolutely a topic of interest for us.
Jochen
----------------------
Jochen Krause
RAP project lead
Innoopract
http://innoopract.com
Jorge wrote:
>
> Hi,
>
> I'm here again,
>
> I have found a way to compress all the libraries javascript before
> loading the application.
>
> manager.register( libraryName,
> HTML.CHARSET_NAME_ISO_8859_1,
> RegisterOptions.VERSION_AND_COMPRESS );
>
>
> The idea is to minimize server-client traffic on application load but
> this mechanism of compression is not used.
> I've tried setting RegisterOptions to VERSION_AND_COMPRESS in debug mode
> and I found that the result was no very good, application size was
> almost the same.
>
> Will VERSION_AND_COMPRESS option be available soon?
>
> There's any other way to get a smaller code size in client side?
> I'm trying RAP in a mobile application but not all generated code is
> necessary.
> There are libraries, comments and blanks not needed. I want to minimize
> loading data traffic.
>
> Jorge,
>
|
|
|
|
|
|
|
|
|
Re: Rap on mobile devices [message #87197 is a reply to message #86500] |
Wed, 14 May 2008 09:52  |
Eclipse User |
|
|
|
Hi Paul,
Paul Norrie schrieb:
> What happens if you run it in Pocket IE instead of Opera?
IE does nothing else than showing the background with the blue colour
gradient. Until now I failed to display any debug javascript messages
(followed your hint). But I keep trying.
Reinhold
|
|
|
Powered by
FUDForum. Page generated in 0.37578 seconds