ComponentEventHandler handler = new ComponentEventHandler()
{
@SuppressWarnings("unchecked")
public boolean handleResult(Object result, Component component, String methodDescription)
{
ActionResponseGenerator generator = _resultProcessor.processComponentEvent(
result,
component,
methodDescription);
holder.put(generator);
return true;
}
};
// If activating the page returns a "navigational result", then don't trigger the action
// on the component.
page.getRootElement().triggerEvent(
TapestryConstants.ACTIVATE_EVENT,
invocation.getActivationContext(),
handler);
if (holder.hasValue())
return holder.get();
element.triggerEvent(actionLinkTarget.getEventType(), invocation.getContext(), handler);
ActionResponseGenerator result = holder.get();
if (result == null)
{
Link link = _linkFactory.createPageLink(page);