submit form data to another zk application

asked 2020-10-15 21:57:47 +0800

ziobleed gravatar image ziobleed
3 2

updated 2020-10-15 21:59:21 +0800

hi all.

i want to send many data via post to another web app. Doing directly, without passing in the client, is not working cause the page is not updated and so the new destination page is not showed.

I've tried with get with Clients.sendRedirect and it works but i don't want the many parameters sent showed in the address bar. Also i can't hide the address bar.

I'm not sure if there is a simpler way. What i thought is:

  • create a zul with the post form
  • pass parameters to this form from java in some way
  • send the form via javascript

i don't know how to do it

can anyone help?



delete flag offensive retag edit


Hi MDuchemin, i've implemeneted it as you suggested...

Thanks a lot

Best regards


ziobleed ( 2020-10-16 21:00:29 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-16 18:04:45 +0800

MDuchemin gravatar image MDuchemin
1891 1 5
ZK Team

Hey there,

Have a look at this fiddle

easiest way to submit the form is with a client-side listener, but you can trigger it from server side too, with evalJavaScript.

To create the form itself, the easiest (but brute force way) is to just set the content of an html component after creating the content string. using hidden inputs is a good way to prevent it from affecting your UI.

try it out ;)

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




Asked: 2020-10-15 21:57:47 +0800

Seen: 10 times

Last updated: Oct 16 '20

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