-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi Everyone
i wanna make a filter search box..
i add a simple Event in my combobox
public void onChanging$cbCategory(Event event){ if (cbCategory.getValue().equalsIgnoreCase("all")){ rowKeyword.setVisible(false); rowCombokey.setVisible(false); } else if(cbCategory.getValue().equalsIgnoreCase("impact")){ rowKeyword.setVisible(false); rowCombokey.setVisible(true); } else{ rowKeyword.setVisible(true); rowCombokey.setVisible(false); } }
Logic :
if the combobox choose All, booth of rowKeyword and rowCombokey are invisible..
if i choose impact, rowCombokey will set visible, and rowKeyword will set invisible..
and else, rowKeyword will set visible, and rowCombokey will set invisible
rowKeyword contain a textbox..
and rowCombokey contain combobox..
this is the error
org.zkoss.zk.ui.UiException: Sourced file: inline evaluation of: `` . . . '' : Attempt to resolve method: setSelectedIndex() on undefined variable or class name: category : at Line: 90 : in file: inline evaluation of: `` . . . '' : category .setSelectedIndex ( 0 ) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) java.lang.reflect.Constructor.newInstance(Unknown Source) org.zkoss.lang.Classes.newInstance(Classes.java:78) org.zkoss.lang.Exceptions.wrap(Exceptions.java:164) org.zkoss.zk.ui.UiException$Aide.wrap(UiException.java:46) org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:122) org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:310) org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:787) org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:176) org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:493) org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:425)
can anyone help me?/
Sourced file: inline evaluation of: `` . . . org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:122) . . .
This error comes from some scripts in your zul fle. Please show us the zul code.
Asked: 2011-06-09 00:26:59 +0800
Seen: 302 times
Last updated: Jun 09 '11