Re: AW: Component event handlers

2008-03-20 Thread José Paumard
José Paumard [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 19. März 2008 17:33 An: Tapestry users Betreff: Re: AW: Component event handlers Code snippets are very basic : In the tml : click me In the class : @Inject private Block someBlock ; @OnEvent(value="someEv

Re: AW: Component event handlers

2008-03-19 Thread Howard Lewis Ship
n the div > "someZone", but I have an exception instead. > > José > > Martin Kersten a écrit : > > Sounds like onActivate? What do you try to do? Can you give us the exact > case (event type). Code Snippet? > > > > Von: J

Re: AW: Component event handlers

2008-03-19 Thread José Paumard
etreff: Re: AW: Component event handlers Code snippets are very basic : In the tml : click me In the class : @Inject private Block someBlock ; @OnEvent(value="someEvent") Block clickMe() { return someBlock ; } What I would expect is to see the con

Re: AW: Component event handlers

2008-03-19 Thread Ted Steen
; > Von: José Paumard [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 19. März 2008 17:33 > An: Tapestry users > Betreff: Re: AW: Component event handlers > > > > Code snippets are very basic : > > In the tml : > > click me > > > > >

AW: AW: Component event handlers

2008-03-19 Thread Martin Kersten
33 An: Tapestry users Betreff: Re: AW: Component event handlers Code snippets are very basic : In the tml : click me In the class : @Inject private Block someBlock ; @OnEvent(value="someEvent") Block clickMe() { return someBlock ; } What I would expec

Re: AW: Component event handlers

2008-03-19 Thread José Paumard
det: Mittwoch, 19. März 2008 17:18 An: Tapestry users Betreff: Re: Component event handlers Hello Chris, Thank you for your fast answer. It is Block (not BlockImpl, this class is in the internals of T5, so using it is not recommended). I switched to Object, but it didnt change anything. Her

AW: Component event handlers

2008-03-19 Thread Martin Kersten
Sounds like onActivate? What do you try to do? Can you give us the exact case (event type). Code Snippet? Von: José Paumard [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2008 17:18 An: Tapestry users Betreff: Re: Component event handlers Hello Chris

Re: Component event handlers

2008-03-19 Thread José Paumard
Hello Chris, Thank you for your fast answer. It is Block (not BlockImpl, this class is in the internals of T5, so using it is not recommended). I switched to Object, but it didnt change anything. Here is the exact error message : A component event handler method returned the value [EMAIL

Re: Component event handlers

2008-03-19 Thread Davor Hrg
too little information... some events support return value, some don't... tell more on exact case Davor Hrg On Wed, Mar 19, 2008 at 5:12 PM, José Paumard <[EMAIL PROTECTED]> wrote: > > Hi all, > > Everytime I try to return an injected block in an event handler method, I > get an error me

Re: Component event handlers

2008-03-19 Thread Chris Lewis
What is the declared return type of your method? It should be Object, and not BlockImpl. José Paumard wrote: > Hi all, > > Everytime I try to return an injected block in an event handler > method, I get an error message, telling me that BlockImpl is not a > valid returned value. From the nightly g

Component event handlers

2008-03-19 Thread José Paumard
Hi all, Everytime I try to return an injected block in an event handler method, I get an error message, telling me that BlockImpl is not a valid returned value. From the nightly generated docs, this is supposed to work. Has anyone experienced this too ? Thank you, José --