facebook

Google Web Toolkit (GWT)

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #263699 Reply

    @serkol wrote:

    Konstantin,

    It’s true that GWT Designer from Instantiations can handle the case when several “modules” in fact are just one module, and the rest are libraries. This is not my case.

    My GWT application is very large. I don’t want to be one of those guys who complain that their compiled GWT module weighs several megs and it takes minutes to load it into a browser. I have divided my application into several modules that are loaded in frames. Each such module is a “real” GWT module, it is hosted by a separate html page.

    All these html pages that host GWT modules, and the corresponding RPC servlets, must be in the same war file.

    Can GWT Designer’s project have several “real” GWT modules? Not to my knowledge. For some reason people in Instantiations don’t see this as a problem.

    I guess that this comes from the GWT ideology: one application = one GWT module. This looks funny to me. Imagine if you were allowed to have only ONE jsp page per web application. That’s why some GWT projects end up with a 2MB compiled GWT module (which is a html page).

    Ah, now I understand you. You have practically several separate GWT applications and want to package them as single WAR. Yes, there are not such feature right now, but now, when I understand your requirements, I am ready to implement it. 🙂

    Can you describe a little what do you want from deployment, i.e. how do you want specify what should be deployed?

    [list=]Just specify several GWT modules?[/list]
    [list=]Should all of them be in same project or you need to deploy GWT modules from different projects?[/list]
    [list=]Should be anything other than GWT modules included in same WAR?[/list]

    [list=]Do you know how to start GWT application in hosted mode (using GWTShell) and be able to run several GWT modules? AFAIK you specify URL like {module.id}/{html.file.in.public}, so there are not way to run several modules.[/list]

    #263758 Reply

    serkol
    Member

    Konstantin,

    About the hosted mode – I gave up on it. My GWT modules (or call them separate GWT programs) are parts of one application, so one module loads another one with some initial parameters (through request parameters). Later they interact through “javascript native” functions. And they are useless without RPC. I tried a little to make this work in the hosted mode, I failed, and I don’t bother with it anymore. I use it only when I program a new composite.

    About WAR file. Think about the problem in this way.
    1) GWT is not the only thing on the website, it’s just a part of a web application
    2) This web application has a web.xml file, and it may be pretty complex. It may include different servlets with different mappings, “load on startup” servlets, filters, listeners and so on.
    3) EJB-s? I don’t use them but some do.
    4) Struts or JSF? Some would have GWT host pages and RPC servlets as part of their Struts or JSF application.

    So it looks like ideally I’d want MyEclipse recognize GWT projects, know how to compile them, and include them into web.xml and war or ear file.

    Anyway, I could use your enhancements to GWT Designer.

    Currently I have my GWT modules as separate projects. I don’t care if GWT modules are in one or in separate projects, as long as they can have separate host pages and RPC servlets. Additionally there are a few non-GWT projects (server-side business logic) that also go into the same war file. Web.xml file lists some non-GWT servlets, load-on-startup servlets, filters, and GWT servlets.

    I’ve modified your ant task so that it calls GWT complier for all my GWT projects, than it creates web.xml file with non-GWT and GWT stuff, then it packages several non-GWT and GWT projects into one war file, and deploys it to the server. Then I use MyEclipse to start the server.

    Good luck! 🙂

    #267031 Reply

    @serkol wrote:

    Currently I have my GWT modules as separate projects. I don’t care if GWT modules are in one or in separate projects, as long as they can have separate host pages and RPC servlets. Additionally there are a few non-GWT projects (server-side business logic) that also go into the same war file. Web.xml file lists some non-GWT servlets, load-on-startup servlets, filters, and GWT servlets.

    I’ve modified your ant task so that it calls GWT complier for all my GWT projects, than it creates web.xml file with non-GWT and GWT stuff, then it packages several non-GWT and GWT projects into one war file, and deploys it to the server. Then I use MyEclipse to start the server.

    Good luck! 🙂

    Better do something later than never, right? 🙂

    We’ve added simple support for Web projects and ability for GWT projects to participate in deployment of Web projects that include GWT modules. See following screenshots. This features are available in latest builds of GWT Designer (1.5.1+).




    Hope that will help. 😉

    #267567 Reply

    michal.p
    Member

    Hello.
    There is a very nice plugin for GWT: Googlipse. It has a great functionality:
    * Creating a module
    * Creating a remote service
    * Maintaining the Async file.
    * Runing your app in hosted mode.
    * Compiling your app to JavaScript.
    * Deploying to an external server.
    * Exporting as war operation

    Unfortunately I can’t make it works in MyEclipse. Has anyone try to lunch it in MyEclipse ??

    #268203 Reply

    Denis Lavoie
    Participant

    Hi There !

    Could not make it working either…

    A+

    Jedymaster

Viewing 5 posts - 16 through 20 (of 20 total)
Reply To: Google Web Toolkit (GWT)

You must be logged in to post in the forum log in