You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Saeed Iqbal <sa...@gmail.com> on 2009/12/17 12:38:37 UTC

The GWT Plugin

I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin
looks very good. How do I make it work with Struts on parts of the project,
will it need multiple entrypoint 's?

-- 
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer

Re: The GWT Plugin

Posted by Michael Finney <fi...@ACM.org>.
Hi.

I have a struts 2 application.  I followed the directions at
http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html

I do not see my Struts2FillGwt class's onModuleLoad method getting
called when I go to
http://localhost:8092/struts2Fill/Gwtandstruts2.html  It's not
dynamically populating my   <td id="sendButtonContainer"></td>

It's set up as an entry point.

I wonder if  http://localhost:8092/struts2Fill/Gwtandstruts2.html  is
really the way to enter the struts2/gwt-plugin powered site.

Should it be something like:
http://localhost:8888/Gwtandstruts2.html?gwt.codesvr=10.0.0.4:9997
and how do I get that gwt.codesvr=....?


2009/12/17 Martin Gainty <mg...@hotmail.com>:
>
> the endpoints would have the same class attribute from the action tag e.g.
> <action name="Hello" class="example.Hello" method="hello">
> MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class);
> ServiceDefTarget endpoint = (ServiceDefTarget) service;
> endpoint.setServiceEntryPoint("Hello.action");
>
> http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html
>
> Martin Gainty
> independant?
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>> Date: Thu, 17 Dec 2009 16:38:37 +0500
>> Subject: The GWT Plugin
>> From: saeedcs@gmail.com
>> To: user@struts.apache.org
>>
>> I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin
>> looks very good. How do I make it work with Struts on parts of the project,
>> will it need multiple entrypoint 's?
>>
>> --
>> Saeed Iqbal
>> Independant Consultant
>> J2EE - Application Architect / Developer
>
> _________________________________________________________________
> Hotmail: Trusted email with powerful SPAM protection.
> http://clk.atdmt.com/GBL/go/177141665/direct/01/



-- 
Michael Finney - "Always Striving To Serve You Better Every Day"
http://www.SmilingSoftwareSolutions.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [Struts 2.1.8] Dojo with Tiles: works or not ?

Posted by Struts Two <st...@yahoo.ca>.
I am using struts 2.1.8 with Tiles 2.0.5 and Dojo toolkit 1.3.2 [not struts dojo plugin] and I have no problem.

--- On Thu, 12/17/09, Celinio Fernandes <ce...@yahoo.com> wrote:

> From: Celinio Fernandes <ce...@yahoo.com>
> Subject: [Struts 2.1.8] Dojo with Tiles: works or not ?
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Received: Thursday, December 17, 2009, 2:36 PM
> Hi,
> I already posted a message about my problem, yesterday.
> I followed this example here : http://struts.apache.org/2.1.8.1/docs/struts-2-spring-2-jpa-ajax.html
> It works well.
> However if i put the JSP pages inside Tiles, then it does
> not work.
> What happens is that the page seems to refresh all the time
> and grows exponentially (one page inside another inside
> another etc).
> 
> Is there a know problem with Dojo in combination with Tiles
> ?
> http://www.dojotoolkit.org/tags/tiles
> 
> Not too sure if it's a big issue or just a minor
> modification i need to do in my Tiles template or the JSPs
> to make it work.
> 
> Perhaps some issue with the <s:div> Dojo tag ?
> 
> I do not think I need to copy-paste any code for more
> details. The header, footer, menu are very classic.
> Does anyone have any idea ?
> thanks for helping.
> 
> 
> 
>       


      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[Struts 2.1.8] Dojo with Tiles: works or not ?

Posted by Celinio Fernandes <ce...@yahoo.com>.
Hi,
I already posted a message about my problem, yesterday.
I followed this example here : http://struts.apache.org/2.1.8.1/docs/struts-2-spring-2-jpa-ajax.html
It works well.
However if i put the JSP pages inside Tiles, then it does not work.
What happens is that the page seems to refresh all the time and grows exponentially (one page inside another inside another etc).

Is there a know problem with Dojo in combination with Tiles ?
http://www.dojotoolkit.org/tags/tiles

Not too sure if it's a big issue or just a minor modification i need to do in my Tiles template or the JSPs to make it work.

Perhaps some issue with the <s:div> Dojo tag ?

I do not think I need to copy-paste any code for more details. The header, footer, menu are very classic.
Does anyone have any idea ?
thanks for helping.



      

RE: The GWT Plugin

Posted by Martin Gainty <mg...@hotmail.com>.
the endpoints would have the same class attribute from the action tag e.g.
<action name="Hello" class="example.Hello" method="hello">
MyServiceAsync service = (MyServiceAsync) GWT.create(MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) service;
endpoint.setServiceEntryPoint("Hello.action");

http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html

Martin Gainty 
independant?
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 17 Dec 2009 16:38:37 +0500
> Subject: The GWT Plugin
> From: saeedcs@gmail.com
> To: user@struts.apache.org
> 
> I am planning to use GWT in some of my projects, the Struts 2 + GWT Plugin
> looks very good. How do I make it work with Struts on parts of the project,
> will it need multiple entrypoint 's?
> 
> -- 
> Saeed Iqbal
> Independant Consultant
> J2EE - Application Architect / Developer
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/