macrocomponent in grid

asked 2013-05-20 16:56:05 +0800

bluegod gravatar image bluegod
3 2


I am using a macro component that contains a cell with a label that I insert inside the row, but it is not printing the content of the cell correctly and adding a new extra column.

<?component name="mylabel" macroURI="/WEB-INF/components/mylabel.zul" ?>
                    <column width="200px" />
                    <column width="100px"/>
                    <column width="100px"/>
                        <mylabel />
                        <label value="test"/>
                        <label value="test"/>


    <label value="NAME"/>

If I enter the content of muylabel.zul replacing the <mylabel/> tag, everything works fine. However, using the current approach an extra column is created and content misaligned - it seems that the cell component is not created correctly and I can see a with no ID or style looking at the HTML generated instead of the expected.

I am using ZK with Grails - using the ZKGrails plugin.

delete flag offensive retag edit


if you want to have the same bahaviour than set <?component name="mylabel" inline="true" macroURI="/WEB-INF/components/mylabel.zul" ?> I tried and it works.

inci02 ( 2013-05-20 20:46:23 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-20 20:48:19 +0800

inci02 gravatar image inci02

Sorry I want to say set inline="true"

...component name="mylabel" inline="true" macroURI="/WEB-INF/components/mylabel.zul...

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: 2013-05-20 16:56:05 +0800

Seen: 10 times

Last updated: May 20 '13

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