0

Adding comboitems via Java?

asked 2011-11-25 15:15:27 +0800

TomZ gravatar image TomZ
42

Hello,

I have a combobox in a zul page:

<combobox id="tableSelect" width="150px" mold="rounded">
<comboitem id="nes" value="nes" label="News" />
<comboitem id="silbersee" value="silbersee" label="Silbersee" />
</combobox>

Form Java, I want now to add new items:

private Combobox tableSelect;

...

tableSelect.appendItem("YXXX");

But that does not work in ZK 5.x anymore? I'm sure that I have old 3.x code where this seems to work ..

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-11-25 19:02:10 +0800

zippy gravatar image zippy
504 1 2

tableSelect.appendChild("YXXX");

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: 2011-11-25 15:15:27 +0800

Seen: 102 times

Last updated: Nov 25 '11

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