AbstractDefaultAjaxBehavior's findIndicatorId() feature request
----------------------------------------------------------------
Key: WICKET-472
URL: https://issues.apache.org/jira/browse/WICKET-472
Project: Wicket
Issue Type: Improvement
Components: wicket
Reporter: Alexandru Objelean
Fix For: 1.2.6
In wicket 1.2.5, is not possible (at least I didn't manage to find a way) to
add AjaxIndicator image to a page for all Ajax requests made by its child
components.
Currently, the AbstractDefaultAjaxBehavior has a findIndicatorId() method which
is responsible to find the component id which should be Ajax indicator.
[code]
private String findIndicatorId() {
if (getComponent() instanceof IAjaxIndicatorAware) {
return
((IAjaxIndicatorAware)getComponent()).getAjaxIndicatorMarkupId();
}
if (this instanceof IAjaxIndicatorAware) {
return
((IAjaxIndicatorAware)this).getAjaxIndicatorMarkupId();
}
return null;
}
[code]
Wouldn't it be better if instead of checking only if :
- the getComponent is instance of the IAjaxIndicatorAware interface, the check
would be made up in hierarchy to find the first parent which implements the
IAjaxIndicatorAware interface?
Thus, if my page implements the IAjaxIndicatorAware interface, it will indicate
any ajax requests of its components... exact what I need right now.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.