First time here? Check out the FAQ!
Hi.. zk team help me to solve my problem related with listbox.
Actually I am developing an application in that I want to pass my listbox selectedindex value from one controller class to another controller class..
When my zul file first invoked everything works perfectly . My listbox shows all values by using the below method
public void onCreate$filter_bar() { lbox_service.setModel(new ListModelList(certilogoServiceDao.getAllServices())); ListModelList lml_service = (ListModelList) lbox_service.getModel(); lml_service.add(0, "All"); }
help me to solve my problem.
Best Regards
Yogendra
ok that's fine but when i call the above method
@samchuang.
actually my certilogoServiceDao is the database controller with which i run a getAllSErvicess() query to get all services in my listbox. lbox_service
my query executes very well but the listbox listmodel returns me null..
So, my listbox might not be able to load at the time filter_bar is created.. or don't know why it is happening???
Best Regards
Yogendra
hello zk friends..
can you help me with my previous thread question that is it possible
to call onCreate$filter_bar method belongs to Basecontroller2
controller from onSelect$(listbox name) method belonging to
InternetSeller controller class..
if it is not possible than just tell me how to initially load all
components when one zul page is included by another zul component
belonging to two different controller's.
Best Regards
Yogendra
Asked: 2011-03-21 06:39:18 +0800
Seen: 453 times
Last updated: Mar 22 '11