1

redirection without "server processing page"

asked 2014-06-11 08:46:09 +0800

elmetni gravatar image elmetni
145 7

updated 2014-06-11 09:13:50 +0800

hello

i want to send redirect to another page but without that "processing" page , because i have a lot of calcul in the target page and the processing page apears for couple of mins

i m using this code so far : Executions.sendRedirect("/index.zul"); and thank you

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-06-11 09:37:32 +0800

cyiannoulis gravatar image cyiannoulis
1191 10

It think that the Clients.clearBusy() method should do the trick:

<window id="indexWindow" >
  <attribute name="onCreate">
     Clients.clearBusy();           
  </attribute>

Hope that helps, Costas

link publish delete flag offensive edit

Comments

what if i want to do it to the whole page ? the thing is : i have a timer that redirect to the same page every min , i dont know where should i put Clients.clearBusy();

elmetni ( 2014-06-11 10:05:27 +0800 )edit
1

In your ZUL page, right after the main window declaration. No need to add something in your view model (or the composer) class:

<window id="mainWindow"> <attribute name="onCreate"> Clients.clearBusy();
</attribute> ... ... </window>

cyiannoulis ( 2014-06-11 10:20:35 +0800 )edit

in my case i m using a border layout to include serval pages , i didnt use a window , it will work with aborder layout ? or should i add a window then add this attribut ?

elmetni ( 2014-06-11 10:25:31 +0800 )edit
1

To be honest i have used it only as a window attribute. But i don't think you will have any problem if you wrap your border layout inside a main window. So your zul code should look like: <window> <attribute name="onCreate">....</attribute> <borderlayout>......</borderlayout> </window>

cyiannoulis ( 2014-06-11 10:39:34 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-06-11 08:46:09 +0800

Seen: 10 times

Last updated: Jun 11 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More