Results 1 to 3 of 3

Thread: LiveGrid is not displayed when deployed on TomCat.

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013

    Default LiveGrid is not displayed when deployed on TomCat.

    I have a GWT application that include only a LiveGrid widget.
    When the application runs inside Eclipse everything works correctly. The same when the app is remotely debugged on TomCat.

    When the app is deployed on TomCat nothing is displayed. The page remains blank.

    After many hours I've found out the culprit: the setting I've used to detect and switch on different platforms. When the settings are removed, everything works correctly.

    Bellow are the settings used in app_gwt.xml:
    <define-property name="mobile.user.agent"
    		values="android, iphone, ipad,not_mobile" />
    	<property-provider name="mobile.user.agent"><![CDATA[
        	var ua = window.navigator.userAgent.toLowerCase();
        	if (ua.indexOf('android') != -1) { return 'android'; }
        	if (ua.indexOf('iphone') != -1) { return 'iphone'; }
        	if (ua.indexOf('ipad') != -1) { return 'ipad'; }
        	return 'not_mobile';
    	<!-- Constrain the value for non-webkit browsers -->
    	<set-property name="mobile.user.agent" value="not_mobile">
    		<none> <!-- Actually means NOR, in this case "not safari" -->
    			<when-property-is name="user.agent" value="safari" />
    	<define-property name="deviceType"
    		values="com$client$gin$DesktopGinModule,com$client$gin$AndroidGinModule,com$client$gin$IpadGinModule,com$client$gin$IphoneGinModule" />
    	<set-property name="deviceType"
    		<when-property-is name="mobile.user.agent" value="not_mobile" />
    	<set-property name="deviceType"
    		<when-property-is name="mobile.user.agent" value="iphone" />
    	<set-property name="deviceType"
    		<when-property-is name="mobile.user.agent" value="ipad" />
    	<set-property name="deviceType"
    		<when-property-is name="mobile.user.agent" value="android" />
    In app I've used mvp4g, gin and guice libraries.

    I think the problem is the way I've defined mobile.user.agent.

    How can I solve the problem considering that I need to use the platform detection ?
    Thank you.

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Arlington, WA


    Do you know if the view with the grid is getting displayed? I have a feeling it could be the view is not showing up. Could you add a html widget to the view and see if it displays. Let me know if this works or doesn't. Another thing I might try to verify everything is wired up is force the other form factor to load on the mobile with the livegrid and see if that works.

    Let me know what you find out,

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2013


    I have a single view which have the LiveGrid inside. The view is not called. No matter is I put another widget before or after. Don't display also a Window.alert("something");

    In a GWT application first nocache.js is get from server and the the next js file are downloaded. In this case only nocache.js is got. That happens every time (is not the caching of this file the problem.)

    I think the way sencha GXT uses user.agent for is the problem here. My feeling is that the generated code doesn't recognise any browser and the js files are not called from nocache.js.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts