HTMLNativeComponent not rendering as div

asked 2014-06-18 03:59:37 +0800

JustinFrost gravatar image JustinFrost
145 1 6

I am trying to create a simple custom component which should output

<div style="fldlbl">content</div>

My component class is

public class Fldlabel extends HtmlNativeComponent {

    private static final String SCLASS = "fldlbl";

    public Fldlabel() {
        this.setDynamicProperty("class", SCLASS);

but when I use the component in zul:


it ignores the div tag and generates:

<fldlabel class="fldlbl">Username</fldlabel>

Why is it not using a div tag ?? Thanks..

delete flag offensive retag edit
Be the first one to answer this question!
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-18 03:59:37 +0800

Seen: 5 times

Last updated: Jun 18 '14

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