0

Component definition not found exception

asked 2012-12-12 10:55:20 +0800

Eustas gravatar image Eustas
75 1

updated 2012-12-12 10:58:06 +0800

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 ?

delete flag offensive retag edit

8 Replies

Sort by » oldest newest

answered 2012-12-12 11:17:31 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Please post your ZUl page ,May be Taglib are missing in your page.See here

link publish delete flag offensive edit

answered 2012-12-12 13:44:02 +0800

Eustas gravatar image Eustas
75 1

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>

link publish delete flag offensive edit

answered 2012-12-12 13:49:29 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Did you try with a Sample project .Is Sample project working for you or not?

link publish delete flag offensive edit

answered 2012-12-12 14:16:06 +0800

Eustas gravatar image Eustas
75 1

updated 2012-12-12 14:16:55 +0800

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.

link publish delete flag offensive edit

answered 2012-12-13 05:03:24 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

I am not suing Spring In my Project but you can Read this article
and Downloads the Jar from here

link publish delete flag offensive edit

answered 2012-12-13 12:36:50 +0800

Eustas gravatar image Eustas
75 1

Thank you.

link publish delete flag offensive edit

answered 2012-12-17 07:04:55 +0800

jeanher gravatar image jeanher
1719 1 6
ZK Team

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

link publish delete flag offensive edit

answered 2014-03-20 18:06:19 +0800

aheda gravatar image aheda
1

Hi ,were you able to resolve this issue? If yes , could you please help me as i am getting the same issue.

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: 2012-12-12 10:55:20 +0800

Seen: 170 times

Last updated: Mar 20 '14

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