-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I am fairly new to ZK, and currently developing a custom component . The component itself is working as intended, it sort of looks like this:
<xcomponent title="test">
<tabbox>
<tabs>
<tab label="Test">
</tabs>
<tabpanels>
<tabpanel> Panel </tabpanel>
</tabpanel>
</tabbox>
</xcomponent>
What I'd like to do know is to take whatever is inside <xcomponent> </xcomponent>, put that into a Popup and open that whenever the user clicks on the component.
Therefore I've written the following piece of JAVA Code:
popup = new Popup();
popup.setId(this.getUuid());
popup.setWidth("890px");
for(Iterator<Component> it=this.getChildren().iterator(); it.hasNext();) {
Component xy = (Component)it.next().clone();
xy.setParent(popup);
}
popup.setParent(this);
This works pretty well actually, but when I use a TabBox with orientation=left or right, an error gets thrown.
TypeError: n is undefined in zul.tab.wpd Line 1123
As I am fairly new to this framework, is this even the right approach? What could I do better instead? The complete Java Class can be found here: pastebin.com/tkEW5G1L
Thanks for you help in advance,
Frank
I thing you problem is you are not end tab tag <tab/> and </tabpanels>:
<tabbox>
<tabs>
<tab label="Test"/>
</tabs>
<tabpanels>
<tabpanel> Panel </tabpanel>
</tabpanels>
</tabbox>
Suppose you are getting any issue please create zkfidle and give a link.
Asked: 2014-04-30 15:16:39 +0800
Seen: 8 times
Last updated: Apr 30 '14
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