0

label not appearing when value originally null

asked 2013-11-26 18:57:34 +0800

robertkaren gravatar image robertkaren
77 7

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>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-27 06:20:53 +0800

RaymondChao gravatar image RaymondChao
386 1 4
ZK Team

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?

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-11-26 18:57:34 +0800

Seen: 7 times

Last updated: Nov 27 '13

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