1

Changing include source makes new page stuck

asked 2016-01-21 13:18:17 +0800

DMH gravatar image DMH
35 6

So I have a pretty basic template (template.zul)

A window which has a border layout and the center is defined as self="@insert(content)".

My index.zul has an init class and the source is the template.zul.

On the index.zul page I have an include that says id="mainInclude "self="@define(content)" source="/calendar/login.zul"

The login.zul has a grid and a button. The onClick event of the button gets the include mainInclude and changes its source to Boletim_Alemao.zul

However when the Boletim.zul is loaded the page is stuck processing (I don't know what its processing since Boletim_Alemao.zul is a grid full of buttons) and basically I can't do anything on it.

My code to change the include source is this: Include include = (Include)Selectors.iterable(login.getPage(),"#mainInclude").iterator().next(); include.setSrc("/calendar/Boletim_Alemao.zul");

delete flag offensive retag edit

Comments

I have, it loads quickly on its own. Meanwhile I've restarted the server and now it loads quickly-ish, however I'd like to use the Clients.showBusy() to say it's loading, how can I do this? Also I can't post a comment to your answer.

DMH ( 2016-01-21 19:24:39 +0800 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-01-21 19:07:46 +0800

Darksu gravatar image Darksu
1991 1 4

Hello DMH,

Most probably the Boletim.zul has some issues.

Can you check the page above separately to see if it loads as expected?

Best Regards,

Darksu

link publish delete flag offensive edit
1

answered 2016-01-27 09:10:21 +0800

DMH gravatar image DMH
35 6

updated 2016-01-27 09:20:52 +0800

The Boletim.zul has no issues since it's loading now however the page goes unresponsive until it actually changes to the new page.

My question is how can I use the Clients.showBusy() until the Boletim.zul loads and when it ends it does Clients.clearBusy()?

Also I can't understand why I can't comment on your answer and because of that I literally have to wait days to answer this.

Edit: Checking the include java documentation lead me to the setProgressing(boolean) method which does exactly what I need.

link publish delete flag offensive edit

Comments

you can't comment because you have to low reputation, I have voted your question and answer to give you some reputation.

chillworld ( 2016-01-27 09:29:13 +0800 )edit

Thank you very much.

DMH ( 2016-01-27 09:45:12 +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: 2016-01-21 13:18:17 +0800

Seen: 22 times

Last updated: Jan 27 '16

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