The SmartGWT.Mobile UI is nice for phones etc. but when it comes to tablets (iPad etc.), it does not offer enough (no usefull tables etc. for the better resolution). Therefore I thought - it'll be great to have the ability to mix SmartGWT and SmartGWT.Mobile widgets (e.g. TreeGrid's or ListGrids for data displayand the mobile widgets for navigation, value entering etc.
To do so I tried some ways: added SmartGWT.Mobile classes via <inherits> to a SmartGWT project and vice versa, tried to use iFrame inside SmartGWT.Mobile for the SmartGWT Pro Grid, tried to use elements from SmartGWT.Mobile for the SmartGWT Pro UI.
No mather what I tried, the most that I got working is that in DevMode it somehow is possible to have both elements on the screen (while the Mobile elements were Z-ordered behind the Pro ones, so I had to modify the Z-Order of the Pro widgets).
But - even though I got some success doing so, this will not compile.
If in the *.gwt.xml file there are both frameworks mentioned, then the Compile will crash with a Java-Heap-Overflow:
*.gwt.xml:
Lets the compiler crash with a Java Heap Overflow sooner or later.
So I thought I am smart and I tried to bring an iframe into the SmartGWT.Mobile UI and have both parts completely separated and only communicating via the URL the iFrame-inner Part is called. But that also does not work, as the SmartGWT Pro generated Javascript uses some access to top.isc to work. And inside the iframe, calling top.isc will be the SmartGWT.Mobile isc object from the outer frame.
So here is my question - is it possible somehow to create a Mobile UI with some SmartGWT Pro parts (including DataSource access, Translation etc.) or vice versa? After some comments in the documentation it sounded possible and even the plan to go.
Any tipps will be great.
To do so I tried some ways: added SmartGWT.Mobile classes via <inherits> to a SmartGWT project and vice versa, tried to use iFrame inside SmartGWT.Mobile for the SmartGWT Pro Grid, tried to use elements from SmartGWT.Mobile for the SmartGWT Pro UI.
No mather what I tried, the most that I got working is that in DevMode it somehow is possible to have both elements on the screen (while the Mobile elements were Z-ordered behind the Pro ones, so I had to modify the Z-Order of the Pro widgets).
But - even though I got some success doing so, this will not compile.
If in the *.gwt.xml file there are both frameworks mentioned, then the Compile will crash with a Java-Heap-Overflow:
*.gwt.xml:
Code:
... <module rename-to="GAToTabletDemo"> <inherits name="com.smartgwtpro.SmartGwtPro" /> <inherits name="com.smartgwt.mobile.SmartGwtMobile"/>
So I thought I am smart and I tried to bring an iframe into the SmartGWT.Mobile UI and have both parts completely separated and only communicating via the URL the iFrame-inner Part is called. But that also does not work, as the SmartGWT Pro generated Javascript uses some access to top.isc to work. And inside the iframe, calling top.isc will be the SmartGWT.Mobile isc object from the outer frame.
So here is my question - is it possible somehow to create a Mobile UI with some SmartGWT Pro parts (including DataSource access, Translation etc.) or vice versa? After some comments in the documentation it sounded possible and even the plan to go.
Any tipps will be great.
Comment