I suspect Tapestry got confused because your method is both the naming convention ("onButtonClicked") and has @OnEvent ... and they are in conflict. Rename the method to not start with "on".
On Wed, Jun 24, 2009 at 1:26 PM, b...@umd <bben...@umd.edu> wrote: > > I am getting this error when clicking on my "searchbutton". What is my > problem exactly ? > > "Request event 'clicked' (on component Gentoo:button) was not handled; you > must provide a matching event handler method in the component or in one of > its containers." > > gentoo.tml : > <t:button type="button" t:id="button" value="search" event="clicked" /> > > gentoo.java : > > @Component(parameters = {"type=button"}) > private Button button; > > @OnEvent(component = "button", value = "clicked") > public JSONObject onButtonClicked(String value) { > > System.out.println("Event Caught !"); > } > > Thanks > > > > > -- > View this message in context: > http://www.nabble.com/Tapestry-5-and-Event-component.-tp24192270p24192270.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry Director of Open Source Technology at Formos