0

Can't see button text whilst running simple demo

asked 2008-09-23 13:46:58 +0800

davout gravatar image davout
1435 3 18

I'm trying to run one of the simple hello world type apps that is listed in the developers guide.

This is the 'hello.zul' file...

?page id="testZul" title=" New ZUL Title" cacheable="false" 
	language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?>

<zk xmlns="http://www.zkoss.org/2005/zul"
	xmlns:h="http://www.w3.org/1999/xhtml" 
	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">
	
<window title="Hello" border="normal" width="400px">
Do you like ZK? 
<label id="label"/>    
    <separator/>    
    <button label="Yes" onClick="label.value = self.label"/>    
    <button label="No" onClick="label.value = self.label"/>  
</window>

</zk>



I'm running this under MyEclipse r6.5

When the page is displayed the separator is ignored and the buttons display without any labels.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-09-25 00:52:26 +0800

dennis gravatar image dennis
3669 1 6
http://www.javaworld.com....

This is runtime problem of the environment , should not studio design time problem.
It seems ZK doesn't startup in your tomcat (or other application server).
I think you must be forgot to configure zk to run in your dynamic web application.

Please check the studio user guide in 4. New ZK Web Application session
http://www.zkoss.org/download/zkstudio.dsp

or configure it manually.
http://www.zkoss.org/doc/index.dsp

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: 2008-09-23 13:46:58 +0800

Seen: 1,056 times

Last updated: Sep 25 '08

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