0

How to add an intermediate component

asked 2016-07-27 09:41:51 +0800

WilliamB gravatar image WilliamB
1609 1 6

I've a custom component and in my zul it looks like this

<cust_container>
  <cust_component />
</cust_container>

Now in the java associated with cust_container, I want to add a wrapping component in between these 2 so that the dom generated looks like :

<cust_container>
  <wrapper_component>
    <cust_component />
  </wrapper_component>
</cust_container>

How would I go about that ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-29 04:57:26 +0800

JustinFrost gravatar image JustinFrost
139 1 6

Is cust_container a custom component also - if it is then you could change the mold and add a wrapper arround its children.

If your cust_container is a macro component then just override the appendChild method to move the child to an internal wrapper.

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

Follow
1 follower

RSS

Stats

Asked: 2016-07-27 09:41:51 +0800

Seen: 18 times

Last updated: Jul 29 '16

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