-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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
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.
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
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674533
By: nobody
Thanks buddy
Asked: 2006-04-07 07:30:28 +0800
Seen: 521 times
Last updated: Apr 07 '06