0

component definition not found

asked 2009-07-29 05:44:34 +0800

jyothi gravatar image jyothi
111 1 1

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 ..

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2009-07-29 05:55:48 +0800

tomCat gravatar image tomCat
276 3

Hi,

can you provide the code of your "sample.zul"?
Perhaps it is only a problem of wrong spelling...

Best regards
tomCat

link publish delete flag offensive edit

answered 2009-07-29 07:29:09 +0800

jyothi gravatar image jyothi
111 1 1

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

link publish delete flag offensive edit

answered 2009-07-29 07:58:48 +0800

tomCat gravatar image tomCat
276 3

updated 2009-07-29 08:00:36 +0800

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

link publish delete flag offensive edit

answered 2009-07-29 11:25:39 +0800

nagkumar gravatar image nagkumar
153

updated 2009-08-03 15:26:23 +0800

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

link publish delete flag offensive edit

answered 2009-07-29 12:30:32 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Tablelayout is provided in zkmax.jar, so please download & use the ZK-Enterprise-Edition:

http://www.zkoss.org/download/zk.dsp#zk

Cheers, Maik

link publish delete flag offensive edit

answered 2009-07-30 05:21:28 +0800

nagkumar gravatar image nagkumar
153

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

link publish delete flag offensive edit

answered 2011-05-09 21:40:57 +0800

jmsbnd gravatar image jmsbnd
27

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

link publish delete flag offensive edit

answered 2011-05-09 22:04:15 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

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

link publish delete flag offensive edit

answered 2011-05-09 22:15:17 +0800

jmsbnd gravatar image jmsbnd
27

hi benbai

i already try it with zk-pe and zk ee 5.0.6 but it still not work on my browser.
any suggestion?

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: 2009-07-29 05:44:34 +0800

Seen: 2,539 times

Last updated: May 09 '11

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