xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

zkui select problem. #129

Open ghost opened 10 years ago

ghost commented 10 years ago

I've create a new grails-2.3.1 application. Created sector and category domain classes. Sector has many categories and category belong to sector. I've created scaffold with the command zkui-generate-all. In this tag:

I have this error:

Script1.groovy: 3: unable to resolve class org.zkoss.zk.ui.util.Clients @ line 3, column 2. import org.zkoss.zk.ui.util.Clients

camponuevo commented 10 years ago

I'm having the same problem with grails 2.3.2 / zkui 0.5.7 Into the gsp I have the code above

z:button label='${message(code: "springSecurity.login.button")}' onClick='Clients.submitForm("loginForm")'

When I click the button... got the error...

Nov 15, 2013 4:27:14 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1362 SEVERE: >>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

Script1.groovy: 3: unable to resolve class org.zkoss.zk.ui.util.Clients @ line 3, column 2. import org.zkoss.zk.ui.util.Clients ^ 1 error at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:927) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:523) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:613) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:516) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:556) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:527) at org.zkoss.zk.scripting.groovy.GroovyInterpreter.exec(GroovyInterpreter.java:60) at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:328) at org.zkoss.zk.ui.impl.PageImpl.getInterpreter(PageImpl.java:901)