0

Listcell does not work well with attribute span??

asked 2010-02-05 08:32:19 +0800

smigol gravatar image smigol flag of Italy
316 2

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!!

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2010-02-05 19:18:30 +0800

iantsai gravatar image iantsai
2755 1

zk 5.0.1 freshly fixed this issue, please download it.

link publish delete flag offensive edit

answered 2010-02-08 01:48:42 +0800

smigol gravatar image smigol flag of Italy
316 2

thanks @iantsai ... I will try!

link publish delete flag offensive edit

answered 2010-02-08 02:49:30 +0800

smigol gravatar image smigol flag of Italy
316 2

@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]>>...



help me ... this is really urgent!!


Regards

link publish delete flag offensive edit

answered 2010-02-08 03:12:49 +0800

smigol gravatar image smigol flag of Italy
316 2

... 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

link publish delete flag offensive edit

answered 2010-02-08 03:30:54 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2010-02-08 03:53:06 +0800

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\'

link publish delete flag offensive edit

answered 2010-02-08 05:26:06 +0800

smigol gravatar image smigol flag of Italy
316 2

updated 2010-02-08 05:29:42 +0800

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



and my macro component dont work !! :-//////
help me please!!
thank you very much!


Regards

link publish delete flag offensive edit

answered 2010-02-08 08:07:23 +0800

smigol gravatar image smigol flag of Italy
316 2

updated 2010-02-08 08:13:34 +0800

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();

in script of index.zul, works by clicking the first time button but if you click again button, no longer works!!!
later, if you remove too
<paging detailed="${arg.pagingdetailed}"/>

in center.zul, then it works every time!! but then I have not reached my initial goal that I had reached with ZK 5.0.0. RC2

help me please and thank you very much!

Regards

link publish delete flag offensive edit

answered 2010-02-08 19:44:23 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

@smigol
I have posted a bug
we will track it

link publish delete flag offensive edit

answered 2010-02-11 19:18:32 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

This bug is fixed in lastest release ZK5 or freshly version

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: 2010-02-05 08:32:19 +0800

Seen: 569 times

Last updated: Feb 11 '10

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