How to passing data From Javascript to Java VMD zkoss

asked 2019-10-09 15:49:07 +0800

Naufal123Seropo gravatar image Naufal123Seropo
3 1

Hello i want to ask i have a question, i already tried to using jquery in zkoss for ajax what i want to do is i want to passing all parameter data from javascript to java i am already used jq.ajax(); but for url java i cannot reach it in zkoss giving result error like this "The requested resource is not available." can someone help me thanks in advance

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-09 19:06:34 +0800

MDuchemin gravatar image MDuchemin
2505 1 6
ZK Team

Hi There, Welcome on the forum.

You can fire events directly from client-side (in JS) but that's usually an advanced for very specific customization use.

The good thing about ZK is that it usually handles client/server communication by itself. For example, if a user types in data in a textbox, selects an item in list or any general action, the client engine will fire the info to the server if you have declared the relevant listener in your java code.

You mentioned parameters, are you trying to retrieve URL params? those are already available in Java code from the context objects. see here.

What are you trying to send to the server exactly? I'm 99% sure that there should be a built-in solution that doesn't require customized ajax calls.

This said, if you really need to send an event from the client manually, here's how.

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: 2019-10-09 15:49:07 +0800

Seen: 23 times

Last updated: Oct 09 '19

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