i think that can work, please add an rfe. we do have global js hooks that
you can use to create a global indicator.
-igor
On 4/6/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
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.
What do you think about it?
Thank you!
--
View this message in context:
http://www.nabble.com/IAjaxIndicatorAware-and-AbstractDefaultAjaxBehavior%27s-findIndicatorId%28%29-feature-request-tf3535594.html#a9868905
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user