Hi David,
How about adding the following lines in your templates?
## get renderRequest and renderResponse
#set ( $renderRequest = $request.getAttribute("javax.portlet.request") )
#set ( $renderResponse = $request.getAttribute("javax.portlet.response") )
-Woonsan
--- On Mon, 8/10/09, David Just <[email protected]> wrote:
> From: David Just <[email protected]>
> Subject: RE: Velocity portlet, renderResponse.createActionURL() not working?
> To: "Jetspeed Users List" <[email protected]>
> Date: Monday, August 10, 2009, 5:07 PM
> Thank you for your suggestion,
> however I'm using Spring Portlet MVC so the standard
> Jetspeed setup isn't exactly applicable. I've narrowed
> my problem down to $renderRequest/$renderResponse are not
> exposed at all in my velocity templates. Does anybody
> have experience getting Velocity working with Spring Portlet
> MVC in Jetspeed?
>
>
>
> David Just l Software Engineer l Vision Solutions l +1
> (507) 529-5939 l [email protected]
> The contents of this e-mail (and any attachments) are
> privileged and confidential. Unauthorized use is strictly
> prohibited.
> -----Original Message-----
> From: Woonsan Ko [mailto:[email protected]]
>
> Sent: Friday, August 07, 2009 10:51 AM
> To: Jetspeed Users List
> Subject: Re: Velocity portlet,
> renderResponse.createActionURL() not working?
>
> Hi David,
>
> I'm not sure, but I guess the following page can help you:
>
> http://portals.apache.org/bridges/multiproject/portals-bridges-velocity/index.html
>
> I guess you can retrieve $renderRequest or $renderResponse
> if you configure BridgesVelocityViewServlet instead of the
> default velocity servlet.
> Also, createActionURL() method is available on
> $renderResponse, not on $renderRequest.
>
> Regards,
>
> Woonsan
>
> --- On Fri, 8/7/09, David Just <[email protected]>
> wrote:
>
> > From: David Just <[email protected]>
> > Subject: Velocity portlet,
> renderResponse.createActionURL() not working?
> > To: "Jetspeed Users List" <[email protected]>
> > Date: Friday, August 7, 2009, 5:29 PM
> > I'm converting a springmvc velocity
> > application into a portlet. I'm
> > trying to get a URL link in the portlet to set a
> request to
> > the
> > controller to change the view state of the portlet.
> I'm
> > trying to follow
> > this: http://forum.springsource.org/showthread.php?t=29249
> >
> >
> >
> > But the variable is not being set.
> >
> >
> >
> > In my vm template I have:
> >
> >
> >
> > #set( $addlink = $renderRequest.createActionURL() )
> >
> > $addlink.setParameter("action", "add")
> >
> > <a href="$addlink" > add </a>
> >
> >
> >
> > When the portlet is rendered, the whole line
> > "$addlink.setParameter("action", "add")" is output to
> the
> > screen so it
> > appears the addlink variable is not being set.
> >
> >
> >
> > Any suggestions?
> >
> >
> >
> > David Just l Software Engineer l Vision Solutions l
> +1
> > (507) 529-5939 l [email protected]
> > The contents of this e-mail (and any attachments) are
> > privileged and confidential. Unauthorized use is
> strictly
> > prohibited.
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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]