0

macrocomponent in grid

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

bluegod gravatar image bluegod
3 2

Hi,

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" ?>
           <grid>
                <columns>
                    <column width="200px" />
                    <column width="100px"/>
                    <column width="100px"/>
                </columns>
                <rows>
                    <row>
                        <mylabel />
                        <label value="test"/>
                        <label value="test"/>
                    </row>
                </rows>
            </grid>

(mylabel.zul)

<cell>
    <label value="NAME"/>
</cell>

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

Comments

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
0

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

inci02 gravatar image inci02
15

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

Follow
1 follower

RSS

Stats

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