You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Eyal Golan <eg...@gmail.com> on 2008/10/05 12:22:43 UTC
ModalWindow and IAjaxIndicatorAware
Hi,
I have a modal window that updates a page (the page it was initiated from).
It updates a URL string in an inline frame src:
IModel iframeModel = new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;
@Override
public Object getObject() {
return reportSrcUrl; // this is updated when the modal
window OK button is pressed
}
};
InlineFrame iframe =
new InlineFrame("iframe", getPage().getPageMap(),
ReportPage.class);
iframe.add(new AttributeModifier("src", true, iframeModel));
Naturally I add the inline frame to the target when the modal window is
closed.
The issue is this:
The operation of changing the src might take a while and I want to show an
indication.
I have set the page to be IAjaxIndicatorAware and used
WicketAjaxIndicatorAppender (just like the indicating ajax button).
Naturally it didn't work :)
Has anyone did something similar?
Thanks
--
Eyal Golan
egolan74@gmail.com
Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74
P Save a tree. Please don't print this e-mail unless it's really necessary