0

create html tag

asked 2008-11-20 14:40:04 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai,

i would like to create a dynamic button tag html . how can i create that ?

i know how to create zk component dynamic such button. just use button btn= new Button() inside loop.


TIA,

Andy Susanto

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2008-11-20 16:15:54 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

http://www.zkoss.org/javadoc/3.5.1/zhtml/

link publish delete flag offensive edit

answered 2008-11-21 14:40:06 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai,

i am realy Confused about zhtml.

how can set a value for a button? i just see setId method to unique component

TIA,

Andy Susanto

link publish delete flag offensive edit

answered 2008-11-22 16:02:54 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

the component in zhtml is kind of ZK abstract component too and it simply generatse a tag just like you write a <table or <hr
do you ever try it ?

link publish delete flag offensive edit

answered 2008-11-24 15:24:10 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai Dennis,

i know zhtml can create a tag like <table and so on.

but if i am using servlet just use ServletOutputStream method to render that html tag.

if i create zk component just Button btn = new Button(); btn.setLabel("test") after that zk will automaticly create that component.

how about zhtml i try create Button btn = new Button() but how to set Label that user can see what the function of that Button.

Can you give an example code that using zhtml and set any value to that zhtml component ?


TIA,

Andy Susanto

link publish delete flag offensive edit

answered 2008-11-25 00:58:05 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

You can refer to this demo

link publish delete flag offensive edit

answered 2008-11-25 03:33:59 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai Jumper,

your demo is showing how to create static html tag.

but i want to create dynamic page. Page will show how many record in database with paging of course, each record will render on the top of button. so user can click that Button.

TIA,

Andy Susanto

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: 2008-11-20 14:40:04 +0800

Seen: 401 times

Last updated: Nov 25 '08

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