-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have seen that the component Listcell has an attribute span, but this does not work well ...
how I can fix this?
<zk> <listbox width="250px"> <listhead> <listheader label="Name" sort="auto"/> <listheader label="Gender" sort="auto"/> </listHead> <listitem> <listcell label="Mary"/> <listcell label="FEMALE"/> </listitem> <listitem> <listcell label="John"/> <listcell label="MALE"/> </listitem> <listitem> <listcell label=" does not work well does not work well does not work well " span="2"/> </listitem> <listitem> <listcell label="Henry"/> <listcell label="MALE"/> </listitem> </listbox> </zk>
THANKS!!
@iantsai
I try zk-bin-5.0.1-FL-2010-02-03 but when deploy my project (a simple test new project) I have this problem:
Starting ZK 5.0.1-FL Standard (build: 10020318) [09:43:17.318]Loading system default [09:43:17.646]Parsing file:/opt/resin/hosts/www.test.it/webapps/ROOT/WEB-INF/zk.xml [09:43:20.421]Unable to read from URL: /js/zk/js.js [09:43:20.421]>>java.io.FileNotFoundException: JAR entry web/js/zk/js.js not found in /opt/resin/hosts/www.test.it/webapps/ROOT/WEB-INF/lib/zk.jar [09:43:20.421]>> at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) [09:43:20.421]>> at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132) [09:43:20.421]>> at java.net.URL.openStream(URL.java:1010) [09:43:20.421]>> at org.zkoss.zk.ui.http.AbstractExtendlet$Provider.getResourceAsStream(AbstractExtendlet.java:188) [09:43:20.421]>> at org.zkoss.zk.ui.http.WpdExtendlet.writeResource(WpdExtendlet.java:323) [09:43:20.421]>> at org.zkoss.zk.ui.http.WpdExtendlet.parse(WpdExtendlet.java:251) [09:43:20.421]>>...
... other errors during deployment: :-/(((
[09:32:57.168]Unable to read from URL: /js/zul/inp/mold/comboboxrounded.js [09:32:57.168]>>java.io.FileNotFoundException: JAR entry web/js/zul/inp/mold/comboboxrounded.js not found in /opt/resin/hosts/www.test.it/webapps/ROOT/WEB-INF/lib/zul.jar [09:32:57.168]>> at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) [09:32:57.168]>> at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132) [09:32:57.168]>> at java.net.URL.openStream(URL.java:1010) [09:32:57.168]>> at org.zkoss.zk.ui.http.AbstractExtendlet$Provider.getResourceAsStream(AbstractExtendlet.java:188) [09:32:57.168]>> at org.zkoss.zk.ui.http.WpdExtendlet.writeResource(WpdExtendlet.java:323) [09:32:57.168]>> at org.zkoss.zk.ui.http.WpdExtendlet.parse(WpdExtendlet.java:221) [09:32:57.168]>>... [09:32:57.218]Unable to read from URL: /js/zul/inp/mold/spinnerrounded.js [09:32:57.218]>>java.io.FileNotFoundException: JAR entry web/js/zul/inp/mold/spinnerrounded.js not found in /opt/resin/hosts/www.test.it/webapps/ROOT/WEB-INF/lib/zul.jar [09:32:57.218]>> at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) [09:32:57.218]>> at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132) [09:32:57.218]>> at java.net.URL.openStream(URL.java:1010) [09:32:57.218]>> at org.zkoss.zk.ui.http.AbstractExtendlet$Provider.getResourceAsStream(AbstractExtendlet.java:188) [09:32:57.218]>> at org.zkoss.zk.ui.http.WpdExtendlet.writeResource(WpdExtendlet.java:323) [09:32:57.218]>> at org.zkoss.zk.ui.http.WpdExtendlet.parse(WpdExtendlet.java:221) [09:32:57.218]>>...
Regards
You can try to download again.
It is works well for me.
or you can check zk.jar,
is js.js in the path 'web\js\zk\'
hi @as1225,
i downloads again, as you have recommended to me but:
[12:20:04.436]Starting ZK 5.0.1-FL Standard (build: 10020318) [12:20:04.510]Loading system default [12:20:04.754]Parsing file:/opt/resin/hosts/www.test.it/webapps/ROOT/WEB-INF/zk.xml [12:20:06.587]Extension xml2html ignored since language xml not found [12:20:06.587]Extension svg ignored since language xml not found
hi @as1225,
below, the code that I have always used (with zk 5.0.0. RC2 works well ever time):
index.zul
<?page id="page_application_enviroment" title="MAIN PAGE" contentType="text/html;charset=UTF-8"?> <zk> <zscript> <![CDATA[ void loadCenter(){ Center center_application_enviroment = (Center)window_application_enviroment.getFellowIfAny("center_application_enviroment"); if (center_application_enviroment!=null){ Component comp = center_application_enviroment.getFirstChild(); if (comp != null) { center_application_enviroment.removeChild(comp); } Executions.getCurrent().createComponents("/center.zul", center_application_enviroment, null); center_application_enviroment.invalidate(); } } ]]> </zscript> <style> html, body {margin:0;padding:0;} </style> <window id="window_application_enviroment" width="100%" height="100%" border="none"> <borderlayout id="borderlayout_application_enviroment"> <north id="north_application_enviroment" border="none"> <!-- HEADER CONTENT SPACES --> <button label="click" onClick="loadCenter();" /> </north> <center id="center_application_enviroment" border="none" flex="true"> <!-- MAIN CONTENT SPACES --> <label value ="MAIN CONTENT SPACES"/> </center> <south id="south_application_enviroment" border="none" size="20px"> <!-- FOOTER CONTENT SPACES --> <label value ="FOOTER CONTENT SPACES"/> </south> </borderlayout> </window> </zk>
center.zul
<?component name="paginglist" macroURI="/macro.zul" inline="true"?> <zk> <borderlayout id="borderlayout_bench" width="100%" height="100%"> <west id="west_bench" size="20%" border="0" margins="2,2,1,2" autoscroll="true"> <label value="WEST"/> </west> <center border="none" margins="0,0,0,1"> <paginglist id="borderlayout_paging_list" pagingdetailed="true" detailed="false"/> </center> </borderlayout> </zk>
macro.zul
<zk> <borderlayout id="${arg.id}"> <center border="none"> <borderlayout style="border:solid 1px #9ECAD8"> <north border="none" style="border-bottom:solid 1px #9ECAD8;border-right:solid 1px #9ECAD8" flex="true"> <paging detailed="${arg.pagingdetailed}"/> </north> <center border="none" style="border-right:solid 1px #9ECAD8"> <listbox vflex="true" width="100%" height="100%"/> </center> <south border="none" style="border-top:solid 1px #9ECAD8;border-right:solid 1px #9ECAD8" flex="true"> <paging detailed="${arg.pagingdetailed}"/> </south> </borderlayout> </center> <east margins="0,2,0,0" size="${(empty arg.detailedsize) ? '30%' : arg.detailedsize}" border="none" if="${true==arg.detailed}"/> </borderlayout> </zk>
OK, now, with ZK 5.0.1-FL Standard (build: 10020318) dont work!!
I noticed that if I try to remove the line:
center_application_enviroment.invalidate();
<paging detailed="${arg.pagingdetailed}"/>
help me please and thank you very much!
Regards
@smigol
I have posted a bug
we will track it
This bug is fixed in lastest release ZK5 or freshly version
Asked: 2010-02-05 08:32:19 +0800
Seen: 569 times
Last updated: Feb 11 '10