Now that I read the manual I see that all I needed to track the id was this:
BigDecimal id = null;
void onActivate(BigDecimal id) {
this.id = id;
}
BigDecimal onPassivate() {
return id;
}
Very elegant... Thank you, Tapestry!
Ben
On 6/28/07, Ben Tomasini <[EMAIL
There's two different contexts here: the page's activate context
(produced by the "passivate" event, provided to the "activate" event
and the Form component's context, which is provide to event handler
methods related to the Form ("success", "prepare", etc.).
The Form does not fire an "activate"
I was using the following code:
Start.html
Start.java
void onActivate() {
System.out.println("No args");
}
void onActivate(String value) {
System.out.println("String arg");
}
On a form submit, the console shows:
No args
I expected the form tag above to invok