0

Accessing variable in another page

asked 2006-04-07 07:30:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674194

By: nobody

Hello Every Body,

I want to use pass some variables from one .zul to another .zul file

parameterpassing.zul

<?page id="Page1"?>

<window id="win1" xmlns:zk="http://www.potix.com/2005/zk" title="User ID"
border="normal" height="580px" style="background-image:
url(Images/BackGround.JPG)">
<zscript>
void check(){
String S="saurabh";
Executions.sendRedirect ("ParameterRecieve.zul?S=saurabh");
}
</zscript>

<button onClick= "check()"/>
<label value="AS" id="q"/>
</window>



Please kindly tell me how to access the string S value and q,value in another zul file.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2006-04-07 10:00:02 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674416

By: tomyeh

S is part of URL, actually a paramter, that you could retrieve by Executions.getCurrent().getParameter("S").

In EL, ${param['S']}

q is not part of sendRediect's URL, so not visible to Param...zul

link publish delete flag offensive edit

answered 2006-04-07 10:30:06 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674457

By: nobody

hi,


<window id="sd" title="recieve">
<label value="dsh" id="A"/>
<button width="100px" label="Login" style="margin-left:auto;margin-right:auto
" onClick= "ch()"/>
<label id="B" value="Parameter NotRecive"/>
<label id="C" value="Parameter NotRecive"/>

<zscript>
B.value=Executions.getCurrent().getParameter("S");
void ch()
{
C.value=Executions.getCurrent().getParameter("S");
}
</zscript>


</window>

Parametrer is getting value in B but not in C , C is assigned value onClick event Please kindly tell me the reason.

link publish delete flag offensive edit

answered 2006-04-07 10:58:34 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674493

By: tomyeh

See
http://en.wikibooks.org/wiki/ZK/How-Tos#Parameter_and_Event_Listener

link publish delete flag offensive edit

answered 2006-04-07 11:35:32 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674533

By: nobody

Thanks buddy

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: 2006-04-07 07:30:28 +0800

Seen: 521 times

Last updated: Apr 07 '06

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