Hi guys,
in our wicket application we use standard framework mechanism for showing
veil on Ajax actions by implementing the interface IAjaxIndicatorAware. It's
working fine until you've got situation when your onXXXX event method of
Ajax form component, for example, ends with setResponsePage redirect.
Something like this, typical scenario:
public void onXXXX(final AjaxRequestTarget target) {
if (conditionForRerender) {
target.add(...components...);
} else {
.....
setResponsePage(MyClass, MyPageParams);
}
}
Problem is when final action of onXXXX method is redirect then our user see
the blocking veil just when Ajax works and not until the redirect is
done...:-(. It's because redirect isn't ajax, wicket does redirection to
result in that case.
The solution which I can come up with is not using the interface
IAjaxIndicatorAware and manipulate the veil manually by leaving the veil
shown even after ajax process, eventual redirect will render new page so the
veil will be removed by redirection.
Anyway, I would prefer if *framework could take care of it*. Something like
this would be awesome:
public void onXXXX(final AjaxRequestTarget target) {
if (conditionForRerender) {
target.add(...components...);
} else {
.....
*target.setLeaveVeilOpen(true);*
setResponsePage(MyClass, MyPageParams);
}
}
which would add into to ajax response information: "Do not hide ajax
indicator"....So the redirection will be veiled as well.
Guys, please any suggestions to this?
Best Regards
Tomas
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Veil-on-ajax-which-ends-with-redirect-eventually-tp4670309.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]