0

Access composite components zuml declared inner components

asked 2017-02-08 15:26:48 +0800

eclipse2 gravatar image eclipse2
17 4

Hi!

I want to develop one component that is one wrapper of the components you place into the zuml tag:

Pratical example:

<myCompositeComponent id="wrapper_composite_component">
    <label id="wrapped_Label"\>
    <combobox id="wrapped_combo"\>
</myCompositeComponent>

Now I have my corresponding java class:

public class MyCompositeComponent extends Div {

//How I can access to BOTH COMPONENTS? label and combo?

}

How I can access to all the components that I placed into the composite component?

Waiting one reply, Regards, Jaime Vaz

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-09 09:10:58 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

with mine experience,

Don't mix the zul and the class behind it, but just append the the label and the combobox in the code of your class.

You could implement the aftercompose interface for that.

Easier and faster (as ZK doesn't need to parse the zul file).

Chill.

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: 2017-02-08 15:26:48 +0800

Seen: 24 times

Last updated: Feb 09 '17

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