0

input after button

asked 2015-06-03 22:34:05 +0800

tess gravatar image tess
5 2

Let's say I have a button:

<button id="customize" label="Customize" &gt;<="" 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.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-03 23:26:18 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2015-06-03 22:34:05 +0800

Seen: 7 times

Last updated: Jun 03 '15

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