use of org.apache.tapestry5.services.ComponentRequestHandler in project tapestry-5 by apache.
the class ProductionModeUnknownComponentFilter method handleComponentEvent.
@Override
public void handleComponentEvent(ComponentEventRequestParameters parameters, ComponentRequestHandler handler) throws IOException {
Page containerPage = cache.get(parameters.getContainingPageName());
try {
containerPage.getComponentElementByNestedId(parameters.getNestedComponentId());
handler.handleComponentEvent(parameters);
} catch (UnknownValueException ex) {
request.setAttribute(InternalConstants.REFERENCED_COMPONENT_NOT_FOUND, true);
}
}
Aggregations