I was trying to tutorial on the web (the number guessing one); And I was able
to set it up. However, when I add this to the Index.tml:
<t:actionlink t:id="create">Create</t:actionlink>
Then, in my Index.java, I have,
public class Index
{
@InjectPage
private CreateContact contact;
public Date getCurrentTime()
{
return new Date();
}
Object OnActionFromCreate() {
return contact.initialize();
}
}
I then click on the "Create" link under the index page, I get a stack trace:
Request event 'action' (on component Index:create) was not handled; you must
provide a matching event handler method in the component or in one of its
containers.
If I remove the "t:id="create"" and then remove the "FromCreate" in the
method, I still get the same thing. Anyone knows what could potentially go
wrong?
Thanks.
-- Daniel.
--
View this message in context:
http://old.nabble.com/actionlink-vs-onAction%28%29-tp29328712p29328712.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]