0

Add HTML in pure java

asked 2010-01-13 04:49:38 +0800

Shonof gravatar image Shonof
12 1

I want to add HTML in my Pure Java Richlet.

I can add html like:

Div div = new Div();
div.setParent( window );

But i want something like:

Htmltext htmltext = new Htmltext();
htmltext.setParent( window );
htmltext = "<div>test</div>";

I know htmltext is not valid, but i can't find something like this.

I hope someone has a solution for me.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-01-13 09:24:59 +0800

kesavkolla gravatar image kesavkolla
180 3

The java equivalent of <html> is org.zkoss.zul.Html.

Html html = new Html("<div>test</div>");

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: 2010-01-13 04:49:38 +0800

Seen: 1,960 times

Last updated: Jan 13 '10

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