> -----Original Message-----
> From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com]
> Sent: Wednesday, August 14, 2013 9:47 AM
> To: Tapestry users
> Subject: Re: Quick ActivationContext question
>
> On Wed, 14 Aug 2013 10:06:21 -0300, Tony Nelson <tnel...@starpoint.com>
> wrote:
>
> > componentResources.createEventLink("deleteContactLog", new Object[]
> > {}).toURI()
>
> Your mistake here is to think that the event context will come from the
> POST'ed data. It doesn't. It comes from the path in the URL.
>
> You're passing an empty context to the createEventLink() method, so the
> URL it generates doesn't have any, so your onDeleteContactLog(ContactLog
> contactLog) (which has a parameter) won't be called. That's Tapestry
> behaving exactly as expected. When you're dealing with dynamic data being
> posted from JavaScript, use an event handler without parameters and use
> query parameters to pass the data:
>
> void onDeleteContactLog() {
>       String id = request.getParameter("id");
>       ...
> }
>
> Of course, on the JavaScript side, you need to make the AJAX request
> containing a query parameter named "id" with the right value.
>

But if I hand craft the URL, "/instihire/view/jacket:deletecontactlog/someidhere

And post that, it works just fine.

My fear is that it won't upgrade, but I'm pretty sure most of my stuff won't 
upgrade when 5.4 comes out anyways.

Since 1982, Starpoint Solutions has been a trusted source of human capital and 
solutions. We are committed to our clients, employees, environment, community 
and social concerns.  We foster an inclusive culture based on trust, respect, 
honesty and solid performance. Learn more about Starpoint and our social 
responsibility at http://www.starpoint.com/social_responsibility

This email message from Starpoint Solutions LLC is for the sole use of  the 
intended recipient(s) and may contain confidential and privileged  information. 
 Any unauthorized review, use, disclosure or distribution is prohibited.  If 
you are not the intended recipient, please contact the sender by reply email 
and destroy all copies of the original message.  Opinions, conclusions and 
other information in this message that do not relate to the official business 
of Starpoint Solutions shall be understood as neither given nor endorsed by it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to