0

[ASK] Composer's combobox problem to setVisible (error : inline evaluation of: ``)

asked 2011-06-09 00:26:59 +0800

gellaps gravatar image gellaps
157 1

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?/

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-06-09 02:48:58 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-06-09 02:50:01 +0800

 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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-06-09 00:26:59 +0800

Seen: 302 times

Last updated: Jun 09 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More