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 what you are trying to accomplish.


On Tue, Aug 13, 2013 at 11:36 PM, Lenny Primak <lpri...@hope.nyc.ny.us>wrote:

> 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 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 want to post the
> ajax call, so this URL won't work.
> >
> > I know that I can hard code the URL as:
> >
> > /ih/view:foo
> >
> > Then add my parameter
> >
> > /ih/view:foo/someval
> >
> >
> > And handle it just fine...
> >
> > void onFoo(String param) { ... }
> >
> > But hard coding the URL doesn't feel like the tapestry way.. is there a
> better way?
> >
> > Thanks in advance
> > Tony
> >
> > ________________________________
> > 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