Again, I'm trying to follow what is in the Kolesnikov book and I can't get it to work:

template:

                <t:form t:id="newUserForm">

                        <table>
                                <tr>
                                        <td colspan="2" align="left">
<input type="submit" t:type="submit" t:id="submitButton" value="Submit"/>
                                        </td>
                                </tr>
                        </table>

                </t:form>

code:

        private Class nextPage;

        @OnEvent(component="submitButton")
        void onSubmitButton()
        {
                System.out.println("submit pressed");
                nextPage = Administration.class;
        }


        Object onSubmitFromNewUserForm()
        {
                System.out.println("form submitted");

                return nextPage;
        }

----------
onSubmitButton is never called. All I see is the output "form submitted".

what's going on? From reading the component Events section on the T5 website it looks like I have got this right.

thanks,
p.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to