0

how to mix multi markup languages in sing pag

asked 2005-12-22 02:33:46 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

in the view of my point(from your demos),zk supports multi markup languages in the single page using xml name space, I try a test follow the user guide,using zk namespace in zhtml file:

<?taglib uri="/web-inf/tld/zul/core.dsp.tld" prefix="u" ?> <html xmlns:zk="http://www.potix.com/2005/zk">
<head>
<link rel="stylesheet" type="text/css" href="${u:getThemeUri()}" />
<title>zhtml demo</title>
</head>

<body>

<input type="button" value="Add Item" />
<zk:button label="zkbutton" />
</body>
</html>

server has exception:com.potix.zk.ui.metainfo.DefinitionNotFoundException: Language not found: http://www.potix.com/2005/zk

my question is:how to mix multi markup languages in the single page?how to distinguish muiti component?

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2005-12-22 02:49:15 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

Please read the user guide first (page 23).

The zk namespace you referenced is for special ZK elements, such as zscript.

If you want XUL component set (button?), use the XUL name space.

link publish delete flag offensive edit

answered 2005-12-22 03:22:55 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

thanks a lot, I have got the new version guide

link publish delete flag offensive edit

answered 2005-12-22 05:55:07 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

one more question:in the former page,I have two buttons:zk button and html button.I can prefer zk button with name space zk:button,but how can I use html button?I tried XHTML's name space,but it doesn't work. thanks.

link publish delete flag offensive edit

answered 2005-12-22 06:28:23 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

Please be more specific, such as source and log.

My wild sugest:
Since you use zhtml as the extension, the HTML namespace is taken as default.
In other words, you don't have to specify the namespace again. Of course, it is harmless if you specify again (as long as no typo).

Anyway, you could do

<html xmlns:x="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>

<button> <!-- this is HTML button -->
<x:button> <!-- this is XUL button -->


link publish delete flag offensive edit

answered 2005-12-22 07:28:05 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: nobody

but HTML button does not work well in the zhtml extension file,try:
<button>button</button>

link publish delete flag offensive edit

answered 2005-12-22 14:51:23 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

By: tomyeh

It is a bug. It is fixed in the lastest nightly build.


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: 2005-12-22 02:33:46 +0800

Seen: 1,152 times

Last updated: Dec 22 '05

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