-
FEATURED COMPONENTS
First time here? Check out the FAQ!
<?page?>
<window apply="Controller">....</window>
public class Cotroller(){
public Cotroller(){
// sometimes i need to stop the page initiation:
int stopnow= Integer.parseInt(Executions.getCurrent().getParameter("stopnow"));
if (stopnow==1){
Executions.getCurrent().forward('anotherpage.zul');
}
}
}
but it seems that doAfterCompose and onCreate method was always executed.
Is there any way to stop the process of initiation ?
Thanks for any suggestion.
You could throw an exception and then implement ComposerExt.doCatch to ignore the exception (by returning false).
Thank you very much, tomyeh!
I tryed to throw an exception in the constructor, it's very well that the doAfterCompose method was not executed now .
but i'm not exactly know where to catch the exception .Could you please tell me more detail ?
i've tryed like this:
Asked: 2009-10-25 08:16:15 +0800
Seen: 314 times
Last updated: Oct 25 '09