-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
Asked: 2013-05-20 16:56:05 +0800
Seen: 10 times
Last updated: May 20 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status
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