Revision history [back]

click to hide/show revision 1
initial version

asked 2008-09-19 14:04:54 +0800

kgibrank gravatar image kgibrank

Syntax Error mark ... help me!

Hi, I'm nwb in ZK framework ... I installed ZK Studio 0.8.2 on Eclipse 3.4 Ganymede, i create my first file .zul with ZUL Editor and copy and paste the simple example in Dev Guide >> Interactivity:

<?page id="testZul" title=" New ZUL Title" cacheable="false" 
    language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?>
    <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?>
<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="My First Window" border="normal" width="200px">
        Hello, World!
        <button label="Say Hello" onClick="alert(&amp;quot;Hello World!&amp;quot;)"/>   
    </window>
</zk>

but Editor give me *Syntax Error mark: *

Multiple annotations found at this line:
    - Syntax error on tokens, delete these 
     tokens
    - Hello cannot be resolved to a type
    - alert cannot be resolved to a type

on

onClick="alert(&amp;quot;Hello World!&amp;quot;)"

!!! Why ?????

Thanks ZK Team and ZK Community and sorry for my bad enaglish!!!

ORAZIO

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