How do H1 in .zul page ?

asked 2014-06-30 13:31:35 +0800

kolodz gravatar image kolodz

updated 2014-06-30 13:32:59 +0800

Hi, when i did try to do a h1 div in a .zul page i get :

Component definition not found: h1 in [LanguageDefinition: xul/html] Witch is very bad, cause it's one of the basic element in HTML.

How do we get a <h1> in a HTML generated by a .zul ?

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-06-30 13:34:52 +0800

IngoB gravatar image IngoB flag of Germany
256 6


have you tried

<window border="normal" title="Html Demo">
        <h4>Hi, ${parent.title}</h4>
        <p>It is the content of the html component.</p>


link publish delete flag offensive edit

answered 2014-07-02 14:50:01 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16

You can use 'native' zk language which means pure html.

<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" xmlns:w="http://www.zkoss.org/2005/zk/client"
  xmlns:n="http://www.zkoss.org/2005/zk/native" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">

       <n:h1 style="color:blue;">Hallo H1</n:h1>
      <n:h2 style="color:red;">Hallo H2</n:h2>
      <n:h3 style="color:green;">Hallo H3</n:h3>
      <n:h4 style="color:black;">Hallo H4</n:h4>


best Stephan

link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2014-06-30 13:31:35 +0800

Seen: 84 times

Last updated: Jul 02 '14

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