-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi - I am a ZK beginner.
I successfully installed the ZK Plugins in Eclipse and created the Hello World test project. Next i wanted to add a Data Binding to mysql Database. I see custom java src-files go into the src folder. The built classes go into the built folder.
But when i try to import my custom classes in the zul page - i get the error that the class file cannot be resolved in Eclipse. Do i have to manually copy the class files to the WebContent directory or how is it correctly done?
I have the file <ProjectRoot>/src/ClientEvent.java
import java.sql.Date; public class ClientEvent { public Date datum; public String thema; public String email; public ClientEvent() {} public ClientEvent(Date datum, String thema, String email) { this.datum = datum; this.thema = thema; this.email = email; } }
Building the projects creates the file <ProjectRoot>/build/classes/ClientEvent.class
From the "Hello World" Application i have the file <ProjectRoot>/WebContent/index.zul
<?page title="Auto Generated index.zul"?> <window title="Hello World!!" border="normal" width="200px"> <zscript><![CDATA[ import ClientEvent; ]]></zscript> </window>
And the import cannot be resolved.
create a package for your your class. right click on the src folder, click new package, name it something like com.zkexperiment.hello. Drag your class into that package and follow the prompts. place the fully qualified name into your CDATA script.
Asked: 2009-09-26 17:07:51 +0800
Seen: 1,070 times
Last updated: Oct 17 '09
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java