Re: Struts2 and Portlets + GWT

2007-11-01 Thread Miguel Ping
Err, a stupid question... where do I send the CLA? And I have to send it in PDF format, right? On 10/31/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > it would be great if you write something up :), you can do it on the > GWT plugin page, or setup a new page on the wiki. You would need to >

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Musachy Barroso
it would be great if you write something up :), you can do it on the GWT plugin page, or setup a new page on the wiki. You would need to file a CLA (http://www.apache.org/licenses/index.html#clas) if you haven't. regards musachy On 10/31/07, Miguel Ping <[EMAIL PROTECTED]> wrote: > By the way, i

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Miguel Ping
By the way, if anyone ever want to know how to use GWT and struts2 for portlet development, I'll be glad to write something up. On 10/31/07, Miguel Ping <[EMAIL PROTECTED]> wrote: > > - But doesn't that share the object in ALL sessions? I want to share a > specific object per user session. Besides

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Nils-Helge Garli Hegvik
Using the application scope, it shares the attributes with all servlets and portlets in the same application (the same .war unit), but it's still only visible to the user session. To get access to the PortletSession, just use PortletActionContext.getRequest().getPortletSession(). On 10/31/07, Migu

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Miguel Ping
- But doesn't that share the object in ALL sessions? I want to share a specific object per user session. Besides, I don't know how to acess the PortletSession. By using SessionAware I can only get a Map, the PortletSessionMap. The Portlet specs show an example with 3 arguments: session.setAttribut

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Nils-Helge Garli Hegvik
If you need to share data between the servlet and the portlet, you have to put it in the application scope, using the PortletSession.APPLICATION_SCOPE constant in the setAttribute operation. Nils-H On 10/31/07, Miguel Ping <[EMAIL PROTECTED]> wrote: > I am already using the plugin :) Nice work, b

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Miguel Ping
I am already using the plugin :) Nice work, by the way ;) I'm having some issue sharing data between portlet sessions and servlet sessions... The portlet api says that the data in servlet session must be acessible from the portlet session. But if i put something in the session map by means of the

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Musachy Barroso
not sure if you can use it for this, but there is a GWT plugin for struts: http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html musachy On 10/31/07, Miguel Ping <[EMAIL PROTECTED]> wrote: > Hi, thanks for the answer. Yes you are correct, GWT makes special requests > that update a part of a page. I

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Miguel Ping
Hi, thanks for the answer. Yes you are correct, GWT makes special requests that update a part of a page. I am reading the Portlet spec and I didn't knew that portlets had custom urls, thanks for the pointer :) So I guess in order to have access to portlet preferences / principal info / etc, the be

Re: Struts2 and Portlets + GWT

2007-10-31 Thread Nils-Helge Garli Hegvik
Hi! The Jsr168Dispatcher only handles requests created as Portlet URLs. I'm not familiar with GWT so apoligies if my assumptions are incorrect, but I assume that you're referring to some sort of "partial request" that updates a section of the page? In that case, it's correct that it should be invo