-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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],
I think u need zkex.jar for Layout Classes.Please Paste your pom.xml entry if ur issue not resolve
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
Asked: 2012-12-19 15:42:57 +0800
Seen: 32 times
Last updated: Dec 20 '12