0

JSP, ZK and Eclipse

asked 2007-01-17 12:25:08 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4107370

By: roxcastaneda

if I were to use zk in eclipse with a .JSP file extension in my pages, will I still be able to use the Content Assist or ctrl-space and have the popup window to help me view all proper ZUL elements and attributes?

If yes, how do I do it? I saw the http://en.wikibooks.org/wiki/ZK/How-Tos#Eclipse
but its just for .zul extension files.

More power to ZK!!!

-rocky

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2007-01-19 16:44:50 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4111688

By: c_armeanu

That depends on the JSP/xml editor you use.

Anyway, to mix zul/zhtml/jsp you need to add the xml schema descriptor to your
jsp:

<x:hbox spacing="0" width="100%"
xmlns:x="http://www.zkoss.org/2005/zul"
xmlns:zk="http://www.zkoss.org/2005/zk"
xmlns:a="http://www.zkoss.org/2005/zk/annotation">

... whatever jsp/zul/...

</x:hbox>

-Chris


link publish delete flag offensive edit

answered 2007-01-20 02:04:42 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4112555

By: roxcastaneda

Yup i tried that but how can i use the content assist or ctrl-space in eclipse thus allowing me to view all the zul elements and attributes?

-rocky

link publish delete flag offensive edit

answered 2007-01-20 03:08:30 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4112617

By: roxcastaneda

Oh i tried it further, and was able to achieve what i wanted thanks for your help.

For reference this is what i did and it worked.

All the best,

-rocky

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <?page id="zultest" language="xhtml"?> <html xmlns:zk="http://www.zkoss.org/2005/zk" xmlns:x="http://www.zkoss.org/2005/zul"
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 ">
<x:window>

<x:label value="test" />

</x:window>
</html>


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: 2007-01-17 12:25:08 +0800

Seen: 236 times

Last updated: Jan 20 '07

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