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-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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");
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.
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 )editAsked: 2016-01-21 13:18:17 +0800
Seen: 22 times
Last updated: Jan 27 '16
Method on an@refed object inside a template in a included zul with form binding is called only once
MVVM form validation for field inside template
Failed to load the resource timepicker.css.dsp and others
How can one set a template to a Grid within java?
ZK, AngularJS and Pure HTML Template
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