|You can do something like the following: void onActivate(EventContext eventContext) { |
||if(eventContext.getCount() == 1) { ... } ||||if(eventContext.getCount() == 2) 
{ ... } ||||if(eventContext.getCount() == 3) { ... } ... |||||

} |

On 20/09/16 18:04, Adam X wrote:
I would like to have multiple (overloaded) onActivate methods in my
page but seems like Tapestry is always picking a method with fewest
arguments.

How can I achieve something like this?

TargetPage {

void onActivate(String foo, String bar) {
}

void onActivate(String foo, Long id1, Long id2) {
}
}

<t:pagelink context="['abc','def']">yo</t:pagelink>
<t:pagelink context=['xyz',10,20]>bam</t:pagelink>

Adam

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


Reply via email to