-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i am using tablelayout in my program but it's not working i am using ZK 3.6.2 i am getting runtime Excepion that exception is..
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: tablelayout in [LanguageDefinition: xul/html], [SYS file:/d:/Apps/Apache/tomcat/webapps/rzk/sample.zul line 23 col 35]
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:737)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:564)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:838)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:211)
org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:102)
org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:196)
org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:94)
org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:219)
org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:193)
org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)
org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:131)
org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:142)
org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:115)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:222)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.zkoss.jsf.zul.util.HttpFacesContextFilter.doFilter(HttpFacesContextFilter.java:134)
why i am getting this Exception how i can solve this ..
<?xml version="1.0" encoding="UTF-8"?>
<!--
columnlayout.zul
{{IS_NOTE
Purpose:
Description:
History:
Mon Aug 18 12:36:44 TST 2008, Created by robbiecheng
}}IS_NOTE
Copyright (C) 2008 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
-->
<?component name="panel" extends="panel" width="200px" height="200px" ?>
it is a example program
<zk>
<tablelayout id="tbl" columns="3">
<tablechildren id="tc1">
<panel title="table1" border="normal" maximized="true"
maximizable="true" collapsible="true" >
<panelchildren>ZK: No1. Ajax + Mobile<image src="/img/earth.png"/></panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="table2" border="normal"
maximizable="true" collapsible="true">
<panelchildren>Panel</panelchildren>
</panel>
</tablechildren>
<tablechildren >
<panel title="table3" border="normal"
maximizable="true" collapsible="true">
<panelchildren>Panel</panelchildren>
</panel>
</tablechildren>
<tablechildren id="tc4">
<panel title="table4" border="normal" maximized="true"
maximizable="true" collapsible="true">
<panelchildren><image src="/img/castle.png"/></panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="table5" border="normal"
maximizable="true" collapsible="true">
<panelchildren>Panel</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="table6" border="normal"
maximizable="true" collapsible="true">
<panelchildren>Panel</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="table7" border="normal"
maximizable="true" collapsible="true">
<panelchildren>Panel</panelchildren>
</panel>
</tablechildren>
</tablelayout>
<hbox><intbox id="ib1"/><button label="set Column of Table" onClick='tbl.columns = ib1.value'/></hbox>
<hbox><intbox id="ib2"/><button label="set Colspan of table1" onClick='tc1.colspan = ib2.value'/></hbox>
<hbox><intbox id="ib3"/><button label="set Rowspan of table1" onClick='tc1.rowspan = ib3.value'/></hbox>
<hbox><intbox id="ib4"/><button label="set Colspan of table4" onClick='tc4.colspan = ib4.value'/></hbox>
<hbox><intbox id="ib5"/><button label="set Rowspan of table4" onClick='tc4.rowspan = ib5.value'/></hbox>
</zk>
Hi jyothi,
the posted code works fine.
You should test your applictation with some simpler code. For example:
index.zul
<?xml version="1.0" encoding="UTF-8"?> <?component name="panel" extends="panel" width="100px" height="100px"?> <window> <tablelayout> <tablechildren> <panel title="test1"> <panelchildren> <label value="Test TEXT" /> </panelchildren> </panel> </tablechildren> </tablelayout> </window>
If this one doesn't work, perhaps you need to download the zk package again?
Best regards,
tomCat
Hi tomCat,
I tried this code and re-downloaidng the June 23 version of zk-bin-prof-3.6.2. the error remains same.
May be some of the dependent jar used in the context of tablelayout are missing with us, such as commons etc which is not existant in the downloaded zk package.
Is there a way to see the detailed logs which zk would generate and show the masked error if any or are u aware of any specific jar which we need to separately download.
Regards,
Nagendra
Tablelayout is provided in zkmax.jar, so please download & use the ZK-Enterprise-Edition:
http://www.zkoss.org/download/zk.dsp#zk
Cheers, Maik
Thank you this works..
Maik, in this context, what is component defination.. how do we expand jar file and know which files belong to the definition. I am assuming that this must be some thing in lines to .tld of custom tag libraries.
Any good document/url do u suggest for custom component development.
Regards,
Raja Nagendra Kumar
C.T.O
www.tejasoft.com
hi all
ive got this error when i try the sample code from Zk live demo about column_layout
http://www.zkoss.org/zkdemo/layout/column_layout
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: columnlayout in [LanguageDefinition: xul/html] ...
what should i do??
column layout requires ZK PE or EE, make sure you got them.
and you can try it at zksandbox
http://www.zkoss.org/zksandbox/#l3
Asked: 2009-07-29 05:44:34 +0800
Seen: 2,539 times
Last updated: May 09 '11