-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
I'm a complete newby to zk, so I'm sure that one is an easy thing:
I try to create a simple hyperlink element (<a href> html) in my zul file, but the page dies with a DefinitionNotFound exception:
My zul file:
<window .... with some attrs> <a href="http://to.somewhere" label="mylink" /> </window>
dies with:
org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found: a in [LanguageDefinition: xul/html]
What am I doing wrong? All other components like buttons, captchas, layouts etc work like a charm.
Many thanks for help
alex
The tagslibs are missing.
<?xml version="1.0" encoding="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 .... with some attrs> <h:a href="http://to.somewhere" label="mylink" /> </window> </zk>
Hi terrytornado,
Many thanks, worked. It seems to be a documentation lack in the official developer's guide manual. You only get a hint in the FAQ section, which is really not the place I will look for component descriptions ;-)
thank,
alex
where can i get spreasheet related taglibs? i am getting org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:///C:/Thi...figuration/customScore.zul:10:11: Component definition not found: spreadsheet in [LanguageDefinition: xul/html] MY ZUL file is <spreadsheet src="/WEB-INF/jsp/configuration/SpreadSheetDemo.xls" maxrows="200" maxcolumns="40" hflex="1" vflex="1"></spreadsheet> </zk>
Try it:
<window xmlns:h="xhtml">
<h:a href="https://www.facebook.com/index.php?l_s=r" >click</h:a>
</window>
Asked: 2010-11-10 06:04:59 +0800
Seen: 362 times
Last updated: Mar 20 '14