mgwt

How to dynamically serve manifest for GWT permutations

半城伤御伤魂 提交于 2019-12-22 22:48:13
问题 Consider the following problem. You'd like to serve an offline manifest/appcache file for your GWT project. In such a case, there are two issues: GWT generates different permutations of js files (depending on browser version). When loading the application, some GWT javascript code uses your user-agent properties to include the appropriate one. You'll want to generate a different manifest file for each of these permutations, as you don't want to cache files you won't use (and these files can

How to register Custom HTML Element as widget in GWT

那年仲夏 提交于 2019-12-22 05:05:04
问题 Hi folks Did someone have any idea how to register custom html element as GWT widget uiBinder and use them directly in place of using in HTMLPanel. For e.g. if I'm using Google Polymer in my mgwt project I'm using custom html element as <g:HTMLPanel > <paper-shadow class="{style.card}"> <mgwt:touch.TouchPanel ui:field="touchPanel"> <mgwt:panel.flex.FlexPanel orientation="VERTICAL" alignment="CENTER"> <g:Image url="{global.getDirection.getSafeUri.asString}" /> <g:HTMLPanel>Take me to Deal</g

How does GWT work or rather how does GWT load the code into the app.html file?

馋奶兔 提交于 2019-12-12 20:26:39
问题 I would like to know what the rootPanel (which is in the entryClass) exactly is, and how GWT loads the Java code into the appname.html file via rootpanel. What happens there exactly? Where is the connection between the rootpanel and the HTML file? I could not find any side which explains this process in a detail. It would be very helpful if somebody could explain it or send some good links to websites which are explaining this issue. 回答1: Have you checked the sources for RootPanel class?

GWT/mGWT development and deployment for mobile apps

馋奶兔 提交于 2019-12-09 16:26:29
问题 I am really confused by lot of links: mgwt, Phonegap, Cordova, gwt-phonegap, etc... Can somebody really help me with a few basic questions about all these? Phonegap and Cordova are one and the same - They will help us to build a mobile deployable component using generated JS files. Am I correct? Steps provided in the Cordova site to create an Android project and deploy needs generated html, JS and CSS content of our project. So we need to build these before we come here from our project.

Detecting GWT permutation on server based on user agent

六眼飞鱼酱① 提交于 2019-12-08 03:36:20
问题 I'm currently working on adding HTML5 offline support to my web application, and am mostly following the same approach of mgwt: Generate manifest files per permutation at compulation time Using a servlet to serve the manifest file, based on the user-agent of the browser. My question involves step 2: In my servlet, I want to detect which permutation to serve for a certain request. The way I do this now is: Get the user agent string from the request Map this (using simple string operations (e.g

Detecting GWT permutation on server based on user agent

醉酒当歌 提交于 2019-12-07 13:36:28
I'm currently working on adding HTML5 offline support to my web application, and am mostly following the same approach of mgwt: Generate manifest files per permutation at compulation time Using a servlet to serve the manifest file, based on the user-agent of the browser. My question involves step 2: In my servlet, I want to detect which permutation to serve for a certain request. The way I do this now is: Get the user agent string from the request Map this (using simple string operations (e.g. userAgent.contains("safari") ) to the 'agent id', which I can map using a mapping file to the

An event to be performed when I click a Panel in GWT/MGWT [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 16:26:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I want to perform an event when I click on a panel, in the same way this happens when the user clicks on a button. I need this in order to handle events on click for this panel. 回答1: You have to use GWT

How to dynamically serve manifest for GWT permutations

放肆的年华 提交于 2019-12-06 05:59:19
Consider the following problem. You'd like to serve an offline manifest/appcache file for your GWT project. In such a case, there are two issues: GWT generates different permutations of js files (depending on browser version). When loading the application, some GWT javascript code uses your user-agent properties to include the appropriate one. You'll want to generate a different manifest file for each of these permutations, as you don't want to cache files you won't use (and these files can be around 0.5MB per permutation). This issue is covered by the MGWT Manifest Linker , which generates

An event to be performed when I click a Panel in GWT/MGWT [closed]

ε祈祈猫儿з 提交于 2019-12-04 23:06:33
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 6 years ago . I want to perform an event when I click on a panel, in the same way this happens when the user clicks on a button. I need this in order to handle events on click for this panel. You have to use GWT FocusPanel which makes its contents focusable, and adds the ability to catch mouse and keyboard events. So wrap your

GWT/mGWT development and deployment for mobile apps

穿精又带淫゛_ 提交于 2019-12-04 04:16:33
I am really confused by lot of links: mgwt, Phonegap, Cordova, gwt-phonegap, etc... Can somebody really help me with a few basic questions about all these? Phonegap and Cordova are one and the same - They will help us to build a mobile deployable component using generated JS files. Am I correct? Steps provided in the Cordova site to create an Android project and deploy needs generated html, JS and CSS content of our project. So we need to build these before we come here from our project. Right? Now if I have a simple GWT project, can I build GWT client and deploy the generated web app content