Re: Recommended way to instantiate EventContext

2016-11-28 Thread Chris Poulsen
Normally you would return an Object[] from passivate and tapestry will coerce it into the correct result. -- Chris On Mon, Nov 28, 2016 at 6:41 PM, Adam X wrote: > Okay, I tried @Persist(FLASH) EventContext ec storing it in activation > and simply returning in

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
Okay, I tried @Persist(FLASH) EventContext ec storing it in activation and simply returning in passivation and it works. This came up as I was trying to solve a different problem which is still haunting me. Essentially, I did a modal feature just like in the jumpstart and it all works very nice:

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
I'm trying to passivate large number (and dynamic) contexts. The signature of my activation looks like this: @OnEvent(value=EventConstants.ACTIVATE) void parseContext(EventContext ec) { and there is a lot going on in there as far as parsing the context. So I'm trying to do this to

Re: Recommended way to instantiate EventContext

2016-11-28 Thread Peter Hvass
Hey again! Are you trying to pass a value to the context parameter of an eventlink by any chance? You can just use any old properties in Java classes - either the Tapestry way with an @Property attached to a field or a public getter of any old type. If it's anything beyond standard Java types

Recommended way to instantiate EventContext

2016-11-28 Thread Adam X
Howdy again! So what's the approved Tapestry way to create an instance of this interface? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: zone="^"

2016-11-28 Thread Adam X
Thanks ! On Mon, Nov 28, 2016 at 4:53 PM, Peter Hvass wrote: > Hey there Adam! It means it targets the nearest containing zone! > > i.e.: > > >> > > Bob > > >> > > > In this example the eventlink targets zone2. > > Hope this helps! > > Peter > > On

Re: zone="^"

2016-11-28 Thread Peter Hvass
Hey there Adam! It means it targets the nearest containing zone! i.e.: > Bob > In this example the eventlink targets zone2. Hope this helps! Peter On 28 November 2016 at 17:48, Adam X wrote: > Hi, > > This jumpstart example uses zone attribute

zone="^"

2016-11-28 Thread Adam X
Hi, This jumpstart example uses zone attribute as in the title: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1 What does this notation mean? I can't find any documentation on this. Adam - To