Re: Quick ActivationContext question

2013-08-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Aug 2013 11:32:57 -0300, Tony Nelson wrote: Why don't you try what I suggested in my previous e-mail? ;) Because I want to use Tapestry's built in Hibernate ValueEncoders. Just @Inject ValueEncoderSource, which is what Tapestry itself uses. Or add the id to the URL itself, no

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
From: Nathan Quirynen [mailto:nat...@pensionarchitects.be] Sent: Wednesday, August 14, 2013 10:41 AM To: users@tapestry.apache.org Subject: Re: Quick ActivationContext question And what is the reason that you can't add the context when creating the event link as mentioned b

Re: Quick ActivationContext question

2013-08-14 Thread Nathan Quirynen
-Original Message- From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Wednesday, August 14, 2013 10:15 AM To: Tapestry users Subject: Re: Quick ActivationContext question On Wed, 14 Aug 2013 10:50:32 -0300, Tony Nelson wrote: But if I han

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
Try now, I made your user account, olwi Tony > -Original Message- > From: Tony Nelson [mailto:tnel...@starpoint.com] > Sent: Wednesday, August 14, 2013 10:33 AM > To: Tapestry users > Subject: RE: Quick ActivationContext question > > > > > -Original Mess

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
> -Original Message- > From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: Wednesday, August 14, 2013 10:15 AM > To: Tapestry users > Subject: Re: Quick ActivationContext question > > On Wed, 14 Aug 2013 10:50:32 -0300, Tony Nelson > wrote: &

Re: Quick ActivationContext question

2013-08-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Aug 2013 10:50:32 -0300, Tony Nelson wrote: But if I hand craft the URL, "/instihire/view/jacket:deletecontactlog/someidhere And post that, it works just fine. It does because you manually put the activation context in the URL, not because you put the id in the POST part of

RE: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
> -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,

Re: Quick ActivationContext question

2013-08-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Aug 2013 10:06:21 -0300, Tony Nelson 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

Re: Quick ActivationContext question

2013-08-14 Thread Tony Nelson
On Aug 13, 2013, at 6:52 PM, Thiago H de Paula Figueiredo mailto:thiag...@gmail.com>> wrote: On Tue, 13 Aug 2013 18:32:46 -0300, Tony Nelson mailto:tnel...@starpoint.com>> wrote: I have a simple page that has an ActivationContext. I'd like to handle a simple ajax call with one parameter. Whe

Re: Quick ActivationContext question

2013-08-13 Thread Thiago H de Paula Figueiredo
On Tue, 13 Aug 2013 18:32:46 -0300, Tony Nelson wrote: I have a simple page that has an ActivationContext. I'd like to handle a simple ajax call with one parameter. When I use componentResource.createEventLink("foo"), the URL contains the ActivationContext, like this: /ih/view:foo?t:a

Re: Quick ActivationContext question

2013-08-13 Thread Dusko Jovanovski
I'm not sure what your exact scenario is, but are you aware that you can pass an varargs parameter to the createEventLink method? http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ComponentResourcesCommon.html#createEventLink(java.lang.String, java.lang.Object...) Seems like exactly

Re: Quick ActivationContext question

2013-08-13 Thread Lenny Primak
Have you tried to create onPassivate() that returns void / null? Maybe that will solve your issue, or you can just ignore the context. On Aug 13, 2013, at 5:32 PM, Tony Nelson wrote: > I have a simple page that has an ActivationContext. I'd like to handle a > simple ajax call with one paramet

Quick ActivationContext question

2013-08-13 Thread Tony Nelson
I have a simple page that has an ActivationContext. I'd like to handle a simple ajax call with one parameter. When I use componentResource.createEventLink("foo"), the URL contains the ActivationContext, like this: /ih/view:foo?t:ac=77 I don't need the ActivationContext for this call, and I wa