If you are using then GenericMVC action/portlets, then the link that you use to fire you action should not include the action in the url. Jetspeed will automatically run the action in your portlet.

Jeremy Ford
[EMAIL PROTECTED]


From: [EMAIL PROTECTED]
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: "Jetspeed Users List" <[EMAIL PROTECTED]>
Subject: Re: VelocityPortlet Set to MAXIMIZE mode
Date: Thu, 6 May 2004 13:25:31 -0400

Making a "dirty" play with session variables, I'm controling the flow, but
my problem now is that the object that was put in context in the doXXX
method, aren't there when the buildNormalContext() is called again, so the
template can't render it...

What could be happening!??

Please, any help is welcomed.

Thank you.




"Stuart Belden" <[EMAIL PROTECTED]> 06-05-2004 08:02 Por favor, responda a "Jetspeed Users List" <[EMAIL PROTECTED]>


Para [EMAIL PROTECTED] cc

Asunto
Re: VelocityPortlet Set to MAXIMIZE mode






buildNormalContext() is always executed after any action is called.


One way to avoid this is to loop through the req parameters and exit
rendering in BNC if you find a param that beings with (eventSubmit_)


>>> [EMAIL PROTECTED] 05/05/04 07:02PM >>> Hi people... I'm building a VelocityPortletAction with 2 methods: buildNormalContext: Which put objects in context to render in the default mode. The object is a List, which has a lot of items, each of one rendered as a link, with the intention to see it detail when clicked.

To see the clicked item detail, I implement a second method:
doViewDetail: which query the full information of the selected item.
Until
now, everything works fine. My problem is that ALWAYS the
buildNormalContextmethod is executed after the doViewDetail, so my item

object get lost.

Is this happenning because the buildNormalContext is ALWAYS executed
before a normal render??

How can I avoid this behavior??... By the way, I wish to display the
item
detail in the portlet maximized mode.

Any assistance woud be very appreciated!!!!

Thank you.


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



_________________________________________________________________
Getting married? Find tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married



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



Reply via email to