0

Modify children item

asked 2008-06-26 15:17:37 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5055915

By: fabreax2

Hello,

I would like to change children :
component1.getChildren().set(i, component2);

but I have a java.lang.UnsupportedOperationException


This works :
component1.getChildren().remove(html);

Do you have an idea ?

Thank you.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2008-06-26 15:41:07 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5055964

By: fabreax2

I found the solution :

parent.insertBefore(texte, html);
parent.getChildren().remove(html);

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-06-26 15:17:37 +0800

Seen: 98 times

Last updated: Jun 26 '08

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