0

Is it possible to get page attribute without zscript ?

asked 2008-12-29 03:16:17 +0800

evpole gravatar image evpole
481 2

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 ?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2008-12-29 07:41:06 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

use arg.* ?

link publish delete flag offensive edit

answered 2008-12-29 09:34:58 +0800

evpole gravatar image evpole
481 2

Thanks for your response.but it seems doen't work.

link publish delete flag offensive edit

answered 2008-12-29 10:55:33 +0800

wangpoint gravatar image wangpoint
3

it should be that:
first <window>
then <zscript>,
so you cann't get username use this method.
i think :)

link publish delete flag offensive edit

answered 2008-12-30 02:02:03 +0800

evpole gravatar image evpole
481 2

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.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-12-29 03:16:17 +0800

Seen: 251 times

Last updated: Dec 30 '08

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