-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I trying to embed zkos to Spring mvc project.
My pom.xml has such dependencies :
<zkoss.version>6.0.2</zkoss.version> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkbind</artifactId> <version>${zkoss.version}</version> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zul</artifactId> <version>${zkoss.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkplus</artifactId> <version>${zkoss.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zhtml</artifactId> <version>${zkoss.version}</version> </dependency> <dependency> <groupId>org.zkoss.common</groupId> <artifactId>zweb</artifactId> <version>${zkoss.version}</version> <scope>compile</scope> </dependency>
Now I trying run zul page. Exception occuring
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:/C:/serve...q/WEB-INF/zul/mypage1.zul:92:49: Component definition not found: detail in [LanguageDefinition: xul/html]
What is the exception and how to resolve it? What does it mean LanguageDefinition: xul/html ?
Please post your ZUl page ,May be Taglib are missing in your page.See here
This is page code:
<?page title="Desktop"?> <window title="Desktop" border="normal"> <borderlayout> <north size="70px"> <div> <menubar id="mainMenu" orient="horizontal"> <menu label="Departments"> <menupopup> <menuitem label="New department" href="create_department.zul"/> <menuitem label="List Departments" href="create_department.zul"/> </menupopup> </menu> <menu label="Discussion"> <menupopup> <menuitem label="new" href="create_department.zul"/> <menuitem label="list" href="disscussions.zul"/> <menuitem label="all" href="disscussions.zul"/> </menupopup> </menu> </menubar> <hbox style="margin:0px 0px 0px 10px;"> <html> <h2>home /</h2> </html> </hbox> </div> </north> <center flex="true"> <div id="contentDiv"> <vbox> <div id="contentHeader" height="50px" style="margin:10px"> <html> <h2>Dashboard admin</h2> </html> </div> <hbox align="start"> <div id="lastdisscussionsBlock" width="500px" style="margin:10px"> <html> <h3>Last</h3> </html> <grid mold="paging" pageSize="5" width="500px"> <columns sizable="true"> <column label="ID" width="40px"/> <column label="Name"/> <column label="Status" width="80px"/> <column label="Changed" width="80px"/> </columns> <rows> <row> <label>111</label> <label maxlength="40" onClick="alert(1);">Message</label> <label>запущена</label> <label>20.01.2012</label> </row> </rows> </grid> </div> <div id="lastDepartmentsBlock" width="500px" style="margin:10px"> <html> <h3>Last</h3> </html> <grid mold="paging" pageSize="5" width="500px"> <rows> <row> <detail> <hbox> <vbox> <hbox> <label>Param 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Param 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Param 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last</label> <label>8 123</label> <label>20.01.2012</label> </row> <row> <detail> <hbox> <vbox> <hbox> <label>Value 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Value 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Value 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last input 20.01.2012</label> <label>8 123</label> <label>20.01.2012</label> </row> <row> <detail> <hbox> <vbox> <hbox> <label>Param 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Param 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Param 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last input 20.01.2012</label> <label>8 123</label> <label>20.01.2012</label> </row> <row> <detail> <hbox> <vbox> <hbox> <label>Param 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Param 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Param 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last input 20.01.2012</label> <label>8 123</label> <label>20.01.2012</label> </row> <row> <detail> <hbox> <vbox> <hbox> <label>Param 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Param 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Param 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last input 20.01.2012</label> <label>8 123</label> <label>20.01.2012</label> </row> <row> <detail> <hbox> <vbox> <hbox> <label>Param 1:</label> <label>Value 1</label> </hbox> <hbox> <label>Param 2:</label> <label>Value 2</label> </hbox> </vbox> <space bar="true" spacing="20px"/> <vbox> <hbox> <label>Param 3:</label> <label>Value 3</label> </hbox> <hbox> <label>Param 4:</label> <label>Value 4</label> </hbox> </vbox> </hbox> </detail> <label maxlength="40">Last input 20.01.2012</label> <label>8 123</label> <label>20.01.2012</label> </row> </rows> </grid> </div> </hbox> </vbox> </div> </center> <south size="20px"> <hbox pack="center" width="100%"> </hbox> </south> </borderlayout> </window>
Did you try with a Sample project .Is Sample project working for you or not?
This is page works properly
<?page title="Super Application"?> <window title="Super Hello" border="normal"> <button label="hi" onClick='alert("hi")'></button> </window>
Actually I cannot find description what libraries I have to add to project (my project based on Spring mvc).
I have now such libraries in project : zkbind, zul, zkplus, zhtml, zweb, zkspring-core.
But what about zkex.jar, zkmax.jar, zml.jar?
Where can I find description for every jar?
Moreover I believe for every license type (CE,PE,EE) I have to add different set of libraries, correct?
I'm going to buy PE license (if it'll be ok) so I have to make settings for PE set libraries, correct?
Thank you.
Regarding maven settings, you can also reference this:
http://books.zkoss.org/wiki/ZK_Installation_Guide/Setting_up_IDE/Maven/Use_ZK_Maven_Artifacts/Resolving_ZK_Framework_Artifacts_via_Maven
Asked: 2012-12-12 10:55:20 +0800
Seen: 177 times
Last updated: Mar 20 '14