-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The dev-guide document says that it's faster to use java files instead of zscript.
so I use init-class to initate a page, and set the parameters to page's attribute.
however ,I had to use zscript to get the page attribute .
Is it possible to get page attribute in EL expression ?
for example :in java file i did:
page.setAttribue("username",mybean.getUsername());
and in zul file i did:
<zscript>String username=page.getAttribute("username");</zscript>
<window title="${username}"/>
is it possible to get page attribute in EL ?
or is there any other way to do it without zcript ?
use arg.* ?
Hi, wangpoint, thanks for response.
your way is better to save memoery.because your zscript is valid in windws scope other than the parent scope.
but what I mean is that is it possible to get the page attribute without any zscript.
Asked: 2008-12-29 03:16:17 +0800
Seen: 251 times
Last updated: Dec 30 '08