JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » AJAX討論區 » ZK  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
作者 我zk wikieditor不能work...
ethan_victory





發文: 49
積分: 0
於 2009-02-06 17:07 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問各位大德, 我大概那兒做錯了呢?

zk lib v3.5.2
ziki lib 0.8.2(
照著Using Wikieditor Component, Part I(http://www.zkoss.org/smalltalks/ziki1/ziki1.dsp)的做法
也有注意Step 3. Copy the lib/*.jar & lib/ext/*.jar files from the Library distribution into the WEB-INF/lib directory of your web application.

貼了測試碼..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<window id="win" title="Ziki-Sample" border="normal">
Welcome Wikieditor!
<wikieditor id="wiki" rows="10" width="500px">
  <wikibutton image="~./ziki/img/bold.gif" prefix="##" 
    postfix="##" tooltip="Bold text" sampleText="Bold Text"/>
  <wikibutton image="~./ziki/img/italic.gif" prefix="~~" 
    postfix="~~" tooltip="Italic text" sampleText="Italic text"/>
  <wikibutton image="~./ziki/img/underline.gif" prefix="__" 
    postfix="__" tooltip="UnderLine text" sampleText="UnderLine Text"/>
  <wikibutton image="~./ziki/img/hr.gif" prefix="----" 
    postfix="" tooltip="Horizontal ruler" sampleText=""/>
  <wikibutton image="~./ziki/img/link.gif" prefix="[" 
    postfix="]" tooltip="External Link" sampleText="alias|link"/>
</wikieditor> 
<button label="Preview" onClick="preview();"/>
<window id="winM" title="Preview content" border="normal" width="350px" visible="false">
  <html id="h" />
  <separator bar="true"/>
  <button label="OK" onClick="winM.setVisible(false)"/>
</window>
<zscript>
void preview(){
((Html)winM.getFellow("h")).setContent(wiki.html);
winM.doModal();
}
</zscript>
</window>


找不到component....
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
嚴重的: Servlet.service() for servlet zkLoader threw exception
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: wikieditor in [LanguageDefinition: xul/html], [SYS file:/C:/jf_program/apache-tomcat-6.0.18/webapps/retrain/t1.zul line 3 col 47]
  at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:751)
  at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:578)
  at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:851)
  at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:210)
  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:222)
  at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:167)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  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:191)
  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:286)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  at java.lang.Thread.run(Unknown Source)


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
880 我zk wikieditor不能work... ethan_victory 4013 2009-02-06 17:07
744 Re:我zk wikieditor不能work... atticcat 10 2009-02-06 18:49
783 Re:我zk wikieditor不能work... ethan_victory 85 2009-02-07 12:06
751 Re:我zk wikieditor不能work... atticcat 167 2009-02-09 12:19
» JWorld@TW »  AJAX討論區 » ZK

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8