0

ZK Studio problem

asked 2008-09-23 01:31:53 +0800

A gravatar image A
117 2

hi,All
I use ZK Studio plug-in,I find it Automatically write <?variable-resolver use="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
if i open this window,

Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.UiException: The class attribute is required, [SYS file:E:/apache-tomcat-6.0.14/webapps/Sinokru/new_file.zul line 4 col 79]
	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:249)
	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:205)
	at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:101)
	at org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:196)
	at org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:94)
	at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:229)
	at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:203)
	at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:144)
	at org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:131)
	at org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:142)
	at org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:115)
	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:219)
	at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:167)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Unknown Source)

Why not class?
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
If I want to inject Spring bean,What should I do?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-09-23 04:12:12 +0800

A gravatar image A
117 2

o thx

link publish delete flag offensive edit

answered 2008-09-23 03:09:23 +0800

windperson gravatar image windperson
415 1

This is a known bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=2113224&group_id=225644&atid=1065690
The fix will be released on next version 0.8.3, currently you have to modify the
<?variable-resolver use="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
manually after the new zul file has been created.

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: 2008-09-23 01:31:53 +0800

Seen: 966 times

Last updated: Sep 23 '08

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