0

HTMLNativeComponent not rendering as div

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

JustinFrost gravatar image JustinFrost
139 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.setTag("div");
        this.setDynamicProperty("class", SCLASS);
    }
}

but when I use the component in zul:

<fldlabel>Username</fldlabel>

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

Follow
1 follower

RSS

Stats

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