I got it to work as mention before. But of curiosity I tried your suggestion.
I dont seem to have addPathInfo avaliable. Because the entire string does not get translated into a link.
I am using Jetspeed b3. It migth be a new feature.
Thanks.
/Henrik
Amin Lalji wrote:
Have you tried $jslink.addPathInfo($jslink.ActionKey,"portlets.myAction").addQueryData( "eventSubmit_...")" ?
/A
-----Original Message-----
From: Henrik W. Hansen [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2003 1:15 PM
To: Jetspeed Users List
Subject: Re: setTemplate in VelocityPortletAction gives
InvocationTargetException
Hi all
I have discovered that linking from the template in another way "resolves" my problem.
The link that fails is the following
<a href="$jslink.setAction("portlets.webmonitor.CreateMonitorAction").addQu
eryData("eventSubmit_doAddmonitor1")">+</a>
This results in the InvocationTargetException.
But if I execute the action the following way:
<input type="submit" name="eventSubmit_doAddmonitor" value="Submit"> and
<a href="$jslink.Template.addQueryData("portlets.webmonitor.CreateMonitorAc
tion").addQueryData("eventSubmit_doAddmonitor","1")">+</a>
everything works perfectly.
Seems that $jslink.setAction does not work the way I expected.
Thank for your fast responses. Best regards Henrik
Jeremy Ford wrote:
Could you try this is the latest version of Jetspeed? Thanks. I seem
to recall that there was a similar issue that was fixed forb4/release.
Jeremy FordSource)
From: "Henrik W. Hansen" <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: setTemplate in VelocityPortletAction gives InvocationTargetException
Date: Thu, 06 Nov 2003 20:55:15 +0100
Hi all
This should be a trivial question. But i have been struggeling with it for a while now.
When executing the following action : public void doAddmonitor(RunData data, Context context) { setTemplate(data, "webmonitor/createMonitorParam.vm"); }
I get the following excetion:
Horrible Exception: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
[EMAIL PROTECTED]at java.lang.reflect.Method.invoke(Unknown Source)
I am running Jetspeed 1.4b3.
If i set the template from within i.e "protected void buildNormalContext" everything works fine.
What can i be doing wrong??
/Henrik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
_________________________________________________________________
From Beethoven to the Rolling Stones, your favorite music is always playingon MSN Radio Plus. No ads, no talk. Trial month FREE! http://join.msn.com/?page=offers/premiumradio
--------------------------------------------------------------------- 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]
