Example of execution getParameter

From Documentation
Revision as of 02:21, 26 July 2010 by Char (talk | contribs) (Created page with '{{ZKDevelopersGuidePageHeader}} helloworld.zul is as follow: <source lang="xml" > <window> 1:${param.contributor} <button id="contributor"/> <zscript > contributor.labe…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Documentationxample of execution getParameter
xample of execution getParameter


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


helloworld.zul is as follow:

<window>
	1:${param.contributor}
	<button id="contributor"/>
	<zscript >
    	contributor.label = Executions.getCurrent().getParameter("contributor");
	</zscript>
</window>

Assume helloworld.zul is under project zksTest, and you visit the url: http://localhost:8080/zksTest/helloworld.zul?contributor=abc

?contributor=abc following original url will be put into param, it means a variable named contributor, and its value is "abc". And developer can get it through Executions.getCurrent().getParameter.




Last Update : 2010/07/26

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.