-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Let's say I have a button:
<button id="customize" label="Customize" ><="" button="">
and in java: @Listen("onClick = #customize") public void getInput(){
}
I want it: whenever I click on button, it would direct me to another page to ask: New: __ and I can do that using Executions.sendRedirect("/page.zul"); But, how would I get that user's input from page.zul to save it in my previous page where customize button is.
The purpose is: I want to add whatever the user enters as a new tab in my page where customize button is.
Hello tess,
You could use as a reference the following tutorial:
http://emrpms.blogspot.in/2013/01/mvvm-pass-parameter-between-two-zul.html
Or using you could accomplish your task using Executions.getCurrent().getParameter()
http://books.zkoss.org/wiki/Exampleofexecution_getParameter
You could also refer to the following url for more information and techniques:
http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/UI%20Patterns/Communication
Best Regards,
Darksu
Asked: 2015-06-03 22:34:05 +0800
Seen: 7 times
Last updated: Jun 03 '15