Refreshing / invalidating a dynamically generted children

asked 2020-04-28 03:24:18 +0800

vsriram92 gravatar image vsriram92
33 3

updated 2020-04-28 03:34:30 +0800

I have a complex structure generated with ZUL Template. The similar ZUL implementation is available in the fiddle.

How to refresh the include under the Panel - Children from Panel - Caption without using any id and only through onclick listener in ZUL file

ZK Fiddle : https://zkfiddle.org/sample/31ogrja/3-Panel-include-refresh

I have the refresh button at the top right corner. I tried by invalidating it using parent.parent.nextSibling.children.get(0).invalidate(); Still no luck.

Can you suggest any other alternate ways to achieve it within the ZUL file by calling invalidate method of its next sibling?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-05-06 14:20:45 +0800

cor3000 gravatar image cor3000
5173 2 7
ZK Team

updated 2020-05-06 14:28:15 +0800

this was not about Luck, you simply missed to prepend "self.".

parent.parent... needs to be self.parent.parent...

here your updated working example:


Anyway there's nothing wrong about using IDs... it would just make your live much easier.

link publish delete flag offensive edit
Your answer
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

1 follower



Asked: 2020-04-28 03:24:18 +0800

Seen: 6 times

Last updated: May 06

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