Hi Reinhold,

either delete the context-Attribute in your template or provide an event 
handler with a parameter holding the context-value (e.g. public void 
onActionFromSampleLink(final int value) ). It is just a guess, but I am pretty 
sure that tapestry is confused by the fact that you provide a context but no 
event handler for it.

Greetings nillehammer


----- original Nachricht --------

Betreff: component specific action event
Gesendet: Mi, 25. Mrz 2009
Von: Reinhold Gruber<r.gru...@deltavista.com>

> Hi all!
>  
> Following is a simplified version of a problem which I'm not able to
> solve:
>  
> I have a component:
> public class Test {}
> 
> <t:container
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
>         <t:actionlink t:id="sampleLink"
> t:context="5">click</t:actionlink>
> 
> </t:container>
> 
>  
> 
> and a page using the Test component
> 
> public class Start {
> 
>     public void onActionFromSampleLink() {
> 
>         System.err.println("onActionFromSampleLink");
> 
>     }
> 
> public void onAction() {
> 
>     System.err.println("onAction");
> 
>     }
> 
> }
> 
>  
> 
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
>     <body><t:test/></body>
> 
> </html>
> 
>  
> 
> To my surprise only onAction() gets invoked,  onActionFromSampleLink()
> is ignored?!?
> 
>  
> 
> Reinhold Gruber
> Software Development
> ___________________________________________________
> 
> Deltavista GmbH
> Diefenbachgasse 35; A-1150 Wien
> Firmenbuchgericht und -nummer: Handelsgericht Wien, 200570g
> Sitz der Gesellschaft: Wien
> DVR: 1062107
> http://www.deltavista.com <http://www.deltavista.com/> 
> 
> Tel: +43 1 897 42 44 17
> Fax: +43 1 897 42 44 31
> mailto:r.gru...@deltavista.com <mailto:r.gru...@deltavista.com> 
> ___________________________________________________
> 
>  
> 

--- original Nachricht Ende ----


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

Reply via email to