-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am trying to use MVEL with i18n without success in Visual Editor. It works in browser however the visual editor in eclipse will not render.
The following code work in visual editor zk studio:
<zk> <grid> <rows> <row>UserName:<label id="username" /></row> </rows> </grid> </zk>
But the following code will not work in visual editor zk studio:
<zk> <grid> <rows> <row>${Labels.getLabel('index.username')}<label id="username" /></row> </rows> </grid> </zk>
As you can see using Labels.getLabel is the problem to ZK Studio (Visual Editor).
Thanks in advance
Sousa, have you seen this doc.
@terrytornado: I know how to use MVEL and all other EL.
The fact, due to great performance of MVEL, I work only with MVEL.
The code above work if you run the application, however, the same code is not rendered in Visual Editor (the issue).
Of course before the code you will need
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?>
<?evaluator name="mvel"?
BTW, Thanks
@sousa,
what is your configuration to make mvel work?
there is a white list in project preference, maybe you should add mvel jar files into this list.
If still not work, then you need to post to feature request. ( VE didn't eat all the ZK configuration in your application)
/Dennis
@Dennis:
Here is an index.zul page which works very well when running application, however VE of ZK Studio will not render the page.
This page works well and is rendered by VE:
<?page id="indexPage" title="BCI - O MEU BANCO" contentType="text/html;charset=UTF-8"?> <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?> <?evaluator name="mvel"?> <zk> <borderlayout> <north size="35%" border="none"></north> <west size="40%" border="none"></west> <center border="none"> <window id="loginForm" width="100%" border="normal"> <grid> <rows> <row>Username: <textbox id="username" /></row> <row>Password: <textbox id="password" type="password" /></row> <row spans="2" align="center"><button id="login" label="Login" /></row> </rows> </grid> </window> </center> <east size="40%" border="none"></east> <south size="35%" border="none"></south> </borderlayout> </zk>
This page works well and is NOT rendered by VE:
<?page id="indexPage" title="BCI - O MEU BANCO" contentType="text/html;charset=UTF-8"?> <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" ?> <?evaluator name="mvel"?> <zk> <borderlayout> <north size="35%" border="none"></north> <west size="40%" border="none"></west> <center border="none"> <window id="loginForm" width="100%" border="normal"> <grid> <rows> <row>${Labels.getLabel('index.username')} <textbox id="username" /></row> <row>${Labels.getLabel('index.password')} <textbox id="password" type="password" /></row> <row spans="2" align="center"><button id="login" label="${Labels.getLabel('index.login')}" /></row> </rows> </grid> </window> </center> <east size="40%" border="none"></east> <south size="35%" border="none"></south> </borderlayout> </zk>
Of course I have the file "i3-label.properties" and all jars necessary to mvel work.
I will post it to feature request.
Looks like, people use less MVEL, let me blog (it means also an small talk) about it, about the advantages of MVEL instead the old EL.
Regards,
Posted to feature request ID: 2826440 link https://sourceforge.net/tracker/?func=detail&aid=2826440&group_id=225644&atid=1065693
Asked: 2009-07-22 19:29:58 +0800
Seen: 1,130 times
Last updated: Jul 24 '09
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java