Announcement

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

    Integrating SmartGWT modules into a regular java web app (non smart GWT or GWT)???

    Could someone provide an example of how to integrate the SmartGWT module (like built-in-ds) into an existing non-GWT web app? Is this even possible? Hard to tell from the documentation I have read. Any help greatly appreciated.

    #2
    No takers on this?? :(

    Comment


      #3
      It is quite straightforward : In your non-gwt web app have a page that has a div with an ID and on this page add all the script includes that you normally have in your GWT host html page including your GWT module's nocache.js file. Your GWT module that produces this nocache.js file should simply add RootPanel.get("your-div-id").add(<top level Smart GWT widget>)

      When this page loads the compiled GWT module will simply add the top level Smart GWT widget to the div on your existing page.

      Comment


        #4
        Originally posted by smartgwt.dev View Post
        It is quite straightforward : In your non-gwt web app have a page that has a div with an ID and on this page add all the script includes that you normally have in your GWT host html page including your GWT module's nocache.js file. Your GWT module that produces this nocache.js file should simply add RootPanel.get("your-div-id").add(<top level Smart GWT widget>)

        When this page loads the compiled GWT module will simply add the top level Smart GWT widget to the div on your existing page.
        And what if I wanted to embed the SmartGWT app directly into a web page? Let's say that I've made the whole page, it has a header and footer, etc. and now I'd like to put the app render in the "content" div.

        Comment

        Working...
        X