Em Mon, 10 Aug 2009 14:28:09 -0300, ApocB <apocalypticwab...@hotmail.com> escreveu:

Hello All,

Hi!

I'm encountering a problem that's driving me crazy... I'm running through
the samples provided in the Tapestry 5 book published by Packt...

That book was written against an old version of Tapestry 5, so be warned that many things have changed since them.

        <t:submit t:id="submitButton" value="Submit"/>
        <input type="submit" t:type="submit" t:id="resetButton"

   @OnEvent(component="submitButton")
    void onSubmitButton() {

The Submit component fires the selected (EventConstants.SELECTED) event, so you should use @OnEvent(component="submitButton", value = EventConstants.SELECTED) or name your method onSelectedFromSubmitButton(). You don't need to use both @OnEvent and method naming: just one of them is enough, but its ok to use both.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to