0

Problem with vlayout

asked 2012-12-19 15:42:57 +0800

Antoc gravatar image Antoc
21 4

I have craeted a zul file which includes the vlayout component. Here is the entire code:

<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?>

     <?page title="My Chart"?>

       <zk xmlns="http://www.zkoss.org/2005/zul"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.zkoss.org/2005/zul
          http://www.zkoss.org/2005/zul/zul.xsd">

        <vlayout apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('util.charts.LineChartVM')" >
           <chart id="chart" title="Half-Year Report" width="520" height="350" paneColor="#FFFFFF"
               type="line" yAxis="Amount"
               model="@bind(vm.model)" engine="@bind(vm.engine)" threeD="@bind(vm.threeD)"
           />
          <hlayout visible="@bind(not empty vm.message)">
             You clicked on :<label value="@bind(vm.message)"/>
         </hlayout>
        </vlayout>

      </zk>

Moreover I have added the following snippet in the pom file:

        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zul</artifactId>
            <version>3.6.3</version>
        </dependency>

However when I go run the file I get the following error:
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: vlayout in [LanguageDefinition: xul/html],...


It looks like vlayout is not supported in the my version of zul. Does anyone know a possible solution to this issue? Has anyone had a similar experience?

Thanks in advance!


org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: vlayout in [LanguageDefinition: xul/html],

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-12-20 05:16:51 +0800

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

I think u need zkex.jar for Layout Classes.Please Paste your pom.xml entry if ur issue not resolve

link publish delete flag offensive edit

answered 2012-12-20 09:13:13 +0800

vincentjian gravatar image vincentjian
2245 6

Hi Antoc,
Vlayout is available since ZK 5.0.4, you can upgrade your zk version from 3.6.3 to 5.011 or 6.5.1.1

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-19 15:42:57 +0800

Seen: 32 times

Last updated: Dec 20 '12

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