Thanks for your answer. I have just read, i can access PortletRequest after injecting him to my View-class.
I only have to set
<inject property="portletRequest" object="service:tapestry.portlet.PortletRequest"/> in my View.page file. Now i have no idea how to access the PortletRequest in View class, simple declare it?
I hope tomorrow i have more time to try out some posibilities.

best regards


On Thu, 29 May 2008 23:07:02 +0200, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote:

I haven't used Tapestry, but most web frameworks give access to the original request and response objects. For example, in Wicket you can do:

PortletRequestContext ctx = (PortletRequestContext) RequestContext.get();
PortletRequest req = ctx.getPortletRequest();

in Struts2 you can do:

PortletActionContext.getRenderRequest();

and in JSF you can do:

PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();

These objects are usually kept in ThreadLocals. I believe Tapestry should have a corresponding method to access the current portlet request and response, you'd better check Tapestry documentation.

Hope this helps..




Serge wrote:

My business logic is in my View Class. ProcessAction() and render() methods are from the ApplicatioPortlet() interface and so implemented in my MyApplicationPortlet class. I don't understand how to access the PortletSession in MyApplicationPortlet from the View class.

Can you explain this, please?
Thanks in advance

On Thu, 29 May 2008 15:33:27 +0200, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote:

if all of your portlets are from the same portlet application (i.e. contained in a single portlet.xml in one web application) then you can put the information in portlet application scope during the action phase of your search portlet like this:

actionRequest.getPortletSession().setAttribute("searchWord", searchWord, PortletSession.APPLICATION_SCOPE);

and the other portlets can obtain it during their render phase like this:

renderRequest.getPortletSession().getAttribute("searchWord", PortletSession.APPLICATION_SCOPE);

this is the most basic form of doing inter-portlet communication.. I think the new portlet specification will provide a better way of doing this..



Serge wrote:
Hello,

i'm new to developing webapllications and have some problems there. In
my case i have a portal based on jetspeed 2.1.3 with
tapestry-portlets.
My issue:
On a portal page there are three portlets.
One with the search input field and others two with information
dependent on search input.
To example, if you input a personID into the search field and start
search, other both
should show information (picture and private information) for the
person with this ID number.
Question: it is possible to share the searchword of portlet with
search input field with others portlets?
If no, any idea how to realize that?

thx in advance

P.S. I posted the question in tapestry list too, because i'm not sure
where to post that, here or in tapestry.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Mit freundlichen Grüßen
Serge R

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to