The syntax in path info to mimic a submit is eventSubmit_doSomething, so the line should read,

<a href="$link.setPage("test.vm").setAction("SomeAction").addPathInfo("eventSubmit_doSomethingonanobject","bla").addPathInfo("SomeData","123")">test</a>

It worked for me. You can add more addPathInfo() clause after setPage() as well. But make sure that addPathInfo("eventSubmit_doSomething","") immediately follows the setAction("") clause.


Marc Lustig wrote:
Hi,
how do I actually set the action method in a href-link?
$link.setAction("MyActions") only sets the action-class.

I saw something like that in the archive:
<a
href="$link.setPage("test.vm").setAction("SomeAction").addPathInfo("submitEv
ent_doSomething","bla").addPathInfo("SomeData","123")">test</a>

Can somebody confirm this is the appropriate solution ?

Greetings,
Marc


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



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

Reply via email to