簡體   English   中英

Java Zkoss 前端框架 - 屬性中的斷線 label

[英]Java Zkoss Frontend Framework - Break line in property label

我投入了太多時間,現在我想問你如何在a.properties file-property的值中的特定position處插入一個換行符。 例如,我有:

祖爾:

<zk xmlns:h="native" xmlns:x="xhtml">
  <groupbox width="850px">
    <caption label="${c:l('not this label')}" />
    <h:table >
      <h:tr>
        <h:td>
          <h:label>${c:l('mylabel.linebreakedlabel')}</h:label>
        </h:td>
....

the.properties 文件:

mylabel.linebreakedlabel = Hello this label should be breaked into two lines

我嘗試了許多不同的解決方案:

A:

Hello this label should be \  breaked
into two lines
-> second line in label gets thrown away

乙:

{
Hello
second line
}
-> The {} gets rendered and second line is thrown away

C:

\n with and without enter either renders the sign or throws away the whole second line

丁:

Tried </br>, the element itself gets rendered

我在這個平台上提問,因為 ZK 論壇不會給我發送 email 來確認我的注冊。 任何人都知道問題所在或至少知道問題出在哪里? (使用 ZK 版本 6)

謝謝!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM