-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Near the bottom of this code there are 2 labels. if they are set to value='' then the span has no size, which is fine. but later when I set their values in java, they do not appear (unless they had a value from the start). do I need some kind of redraw()/refresh() on the page or the span or the labels? thanks for any suggestion!
<?page id="mainPage"?>
<zk>
<window id="mainWindow" title="EzTAB" height="100%" width="100%" >
<borderlayout>
<center border="0">
<tabbox id="mainTabBox" vflex="1">
<tabs id="mainTabs">
<tab id="homeTab" label="Home" />
<tab id="codebookTab" label="Selections" />
<tab id="runReportTab" label="Run Report" />
<tab id="logoutTab" label="Logout" />
</tabs>
<tabpanels>
<tabpanel style="background:#111bab">
<include id="homeTabPanel" src="/homePanel2.zul"/>
</tabpanel>
<tabpanel id="selectionsTabpanel">
<include mode="defer" id="selectionsTabpanelInclude" src="/selectionsPanel.zul"/>
</tabpanel>
<tabpanel>run report</tabpanel>
<tabpanel>
<include id="logoutTabPanel" src="/logoutPanel.zul"/>
</tabpanel>
</tabpanels>
</tabbox>
</center>
<south>
<span style="width:100%;">
<div style="float:left; padding-left:40%;"><label id='filenameMsg' value='Filename:'/></div>
<div style="float:right; padding-right:10px;"><label id='totalsMsg' value=' '/></div>
</span>
</south>
</borderlayout>
<zscript>
codebookTab.setVisible(false);
runReportTab.setVisible(false);
</zscript>
</window>
</zk>
Hello,
It does not need to redraw() or refresh() the page when set label's value. Just call filenameMsg.setValue("xxx"). Can you post the code snippets of how you set label's value?
Asked: 2013-11-26 18:57:34 +0800
Seen: 7 times
Last updated: Nov 27 '13