Already pointed out that this is expected. But you can bypass this behavior. Make your two-parameter method return "true" on successful processing; then your 1-parameter method won't be called.

Robert

On Mar 25, 2009, at 3/256:10 AM , Peter Kanze wrote:

Hello
I have a pagelink that point to this /products/computer/5

In my Products.java I have two onActivate methods. See below.
When I click the pageLink I can see that both onActivate are called.
Because this is printed to the output console:

onActivate(String categoryName, int pageNr)
onActivate: (String categoryName)

Can somebody explain this?
I would expect only public void onActivate(String categoryName, int pageNr)
to be called, because the context has 2 parameters.

greetz,
Peter


public void onActivate(String categoryName) {
System.out.println("onActivate: (String categoryName)");
}
public void onActivate(String categoryName, int pageNr) {
System.out.println("onActivate(String categoryName, int pageNr)");
}


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

Reply via email to