-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a bandbox which have a listbox which responds on select event i have a tabbox with some tabs i would like to onSelect the listbox disabled the tabs i have the following code this is just a snippet
listBox.addEventListener("onSelect",new EventListener()
{
public void onEvent(final Event event) throws Exception
{
final Listbox box = (Listbox) event.getTarget();
final Bandbox band = (Bandbox) box.getParent().getParent();
enabledOrDisableTabs(false);//disable the tabs
myLongOperationDealsWithDatabase();
enabledOrDisableTabs(true);//enabled the tabs
}
});
All i want to do is prevent the user to select another tab while the long operation is being executing but i cannot see the tabs disable i have try this code to see if something is wrong with my code.
listBox.addEventListener("onSelect",new EventListener()
{
public void onEvent(final Event event) throws Exception
{
final Listbox box = (Listbox) event.getTarget();
final Bandbox band = (Bandbox) box.getParent().getParent();
enabledOrDisableTabs(false);//disable the tabs
myLongOperationDealsWithDatabase();
return;
}
});
In fact i can see the tabs being disabled could not find the way disabled and enabled the tabs with a long operation in the middle maybe has to do with the way ZK schedules the operations to gain performance or same request or something any approach..
Hello javiut,
Please find the answer at the following post:
http://forum.zkoss.org/question/98103/zk-tabbox-do-not-disabled/?answer=98258#post-id-98258
Best Regards,
Darksu
Asked: 2015-07-02 13:51:53 +0800
Seen: 36 times
Last updated: Jul 19 '15
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate