-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am dynamically calling jsp page, using include component. But the page is taking a lot of time to load. Two actions are performed on the load of the page. First is the query is fired and second is the page load. The time for the query being fired is ok. But the page is getting time to load.The total time for both this actions is nearly 20. How can i speed up the loading time of the page.
Hi, shub
Could you post your sample code ?
and which version of ZK do you used
i am using zk 5 version.
public class ListTag implements Composer{
ResourceBundle bundle=ResourceBundle.getBundle("queries");
private Listbox listbox;
Include contentDiv;
public void doAfterCompose(Component win) throws Exception {
listbox=(Listbox)win.getFellow("submenu");
contentDiv=(Include)win.getFellow("contentDiv");
win.addEventListener("onNextPage",
new EventListener(){
@Override
public void onEvent(Event event) throws Exception {
Object str=listbox.getSelectedItem().getValue();
String query=bundle.getString("login.authentication.7");
java.util.Vector linkVector=com.ips.thind.dao.ConnectionFactory.runQuery(query,new Object[]{str});
java.util.ArrayList linkArray=ConvertClass.convert(linkVector,linkVector.size());
Include inc=(Include)Path.getComponent("/win/contentDiv");
inc.setSrc(linkArray.get(0).toString());
}
});
}
}
i am using this code to call the jsp page dynamically and set in the center of the border layout
You can refer to this comment
Asked: 2010-02-15 02:46:44 +0800
Seen: 571 times
Last updated: Feb 24 '10