Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #31
    Think it all the way through guys.. people can pull the latest code from SmartGWT SVN at any time. We would need to maintain a variety of different versions on S3, which also implies removing older versions so the buckets don't grow indefinitely, which would break anyone relying on an older version. Then, the first SmartGWT / GAE app to draw a lot of traffic would force us to dismantle the entire system.

    It's not a large effort to create your own S3 account, and you control it so you know it will be there indefinitely. By the time you finish your GAE application you may well have used your S3 account for a number of different purposes beyond loading the core SmartClient runtime.

    Comment


      #32
      Actually...

      This is probably a better solution anyway:
      http://forums.smartclient.com/showthread.php?t=5258

      Still too many hoops to jump through, but it is progress...

      Comment


        #33
        thanks brainedco

        i followed brainedco's instructions and got smart gwt running on appengine/s3, thank you!!!!!!

        Comment


          #34
          My trouble

          I'm having trouble getting this to work, and I can't figure out why it is not working. I'm hosting the "/sc/" directory on my own domain. The project deploys to App Engine, and the buttons/dialogs work except that the image files are missing. I've tried every hint in this thread and the thread on skinning, and nothing seems to work.

          I'm using SmartGWT 1.2, GWT 1.7, and AppEngine Java 1.2.2. The "smartgwt.jar" and "smartgwt-skins.jar" are both included in the build path.

          This was added to my "myproject.gwt.xml" file:
          Code:
          <inherits name='com.smartgwt.SmartGwtNoScript'/>  
          <inherits name="com.smartclient.SmartClientDefault"/> 
          <inherits name="com.smartclient.theme.enterprise.Enterprise"/>
          This was added to the "appengine-web.xml" file:
          Code:
          	<static-files>
          	    <!-- Exclude smartgwt files from the list of static files -->
          	    <exclude path="/sc/**.*" />
          	    <exclude path="/myproject/sc/**.*" />
          	</static-files>
          
          	<resource-files>
          	    <!-- Exclude smartgwt files from the list of resource files -->
          	    <exclude path="/sc/**.*" />
          	    <exclude path="/myproject/sc/**.*" />
          	</resource-files>
          This was added to the "MyProject.html":
          Code:
          <script var isomorphicDir="http://my-domain.com/smartgwt/sc/";></script>
          
          <script src="http://my-domain.com/smartgwt/sc/skins/Enterprise/load_skin.js?isc_version=7.0beta.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/initsc.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Core.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Foundation.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Containers.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Grids.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Forms.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_Calendar.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_DataBinding.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/skins/Enterprise/load_skin.js"></script>
          <script src="http://my-domain.com/smartgwt/sc/modules/ISC_RichTextEditor.js"></script>
          
          <script type="text/javascript" language="javascript" src="myproject/myproject.nocache.js"></script>
          Here is the EntryPoint example (which is just the dialog box example from the showcase):
          Code:
          package com.myproject.client;
          
          import com.google.gwt.core.client.EntryPoint;
          import com.smartgwt.client.util.BooleanCallback;  
          import com.smartgwt.client.util.SC;  
          import com.smartgwt.client.widgets.Canvas;  
          import com.smartgwt.client.widgets.IButton;  
          import com.smartgwt.client.widgets.Label;  
          import com.smartgwt.client.widgets.events.ClickEvent;  
          import com.smartgwt.client.widgets.events.ClickHandler; 
          
          public class MyProject implements EntryPoint {
          
          	public void onModuleLoad() {
          		final Label labelAnswer = new Label("Your answer here...");  
          		labelAnswer.setTop(50);  
          		labelAnswer.setWidth(300);  
          
          		IButton buttonConfirm = new IButton("Confirm");  
          		buttonConfirm.addClickHandler(new ClickHandler() {  
          		    public void onClick(ClickEvent event) {  
          		        SC.confirm("Proceed with Operation get AJAX?", new BooleanCallback() {  
          		            public void execute(Boolean value) {  
          		                if (value != null && value) {  
          		                    labelAnswer.setContents("OK");  
          		                } else {  
          		                    labelAnswer.setContents("Cancel");  
          		                }  
          		            }  
          		        });  
          		    }  
          		});  
          
          		IButton buttonAsk = new IButton("Ask");  
          		buttonAsk.setLeft(150);  
          		buttonAsk.addClickHandler(new ClickHandler() {  
          		    public void onClick(ClickEvent event) {  
          		        SC.ask("Are you going to stop writing great code?", new BooleanCallback() {  
          		            public void execute(Boolean value) {  
          		                if (value != null && value) {  
          		                    labelAnswer.setContents("Yes");  
          		                } else {  
          		                    labelAnswer.setContents("No");  
          		                }  
          		            }  
          		        });  
          		    }  
          		});  
            
          		Canvas main = new Canvas();  
          		main.addChild(labelAnswer);  
          		main.addChild(buttonConfirm);  
          		main.addChild(buttonAsk);  
           
          		main.draw();  
          	}
          }
          Thanks for any help anyone can give.
          -Chris

          Comment


            #35
            Something wrong here

            Originally posted by brianedco
            Hooray! I got it to work.

            The missing step was adding all the script files that gave a warning (eg WARNING: Cannot not serve /testsmartgwt/sc/modules/ISC_Forms.js directly.) into the host html page.
            ...
            I think that you do not need:

            Code:
            <inherits name="com.smartclient.SmartClientDefault"/>
            If you go to implementation of SmartGwt.gwt.xml you will see that the only difference between this file and SmartGwtNoScript.gwt.xml is that SmartGwt.gwt.xml uses SmartClientDefault and that it has Enterprise theme by default. What you did writing

            Code:
            <inherits name='com.smartgwt.SmartGwtNoScript'/>  
            <inherits name="com.smartclient.SmartClientDefault"/> 
            <inherits name="com.smartclient.theme.enterprise.Enterprise"/>
            is making exactly the same thing which is in SmartGwt.gwt.xml file.

            Comment

            Working...
            X