0

General

asked 2009-03-10 18:29:45 +0800

hittalamani gravatar image hittalamani
18

can anyone please tell me how to pass parameters or arguments to windows class from ZU and hpw to return values from windows class to ZUL....

for example: in performing search operation if i give one string to search it has to search and retrieve the data....

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-03-11 06:11:50 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

updated 2009-03-11 06:13:01 +0800

is this a java OOD problem?

link publish delete flag offensive edit

answered 2009-03-11 06:45:40 +0800

hittalamani gravatar image hittalamani
18

yes....after clicking on onclick submit method i am passing argument to window class which has written in java.....

link publish delete flag offensive edit

answered 2009-03-11 08:46:40 +0800

Aaldaaf gravatar image Aaldaaf
9

For this kind of work I find taking all the data binding out of the ZUL and keeping it in the Java window class makes life easier. With the after compose binding it's trivial to add handlers and update display values in the Java code.


public class MyWindow extends Window implements AfterCompose

    @Override
    public void afterCompose() {
        Components.wireVariables(this, this);
        Components.addForwards(this, this);
    }

link publish delete flag offensive edit

answered 2009-03-11 09:13:57 +0800

hittalamani gravatar image hittalamani
18

Hi Aaldaaf,

if u have any similar demo code can u please pass it to me...

Thanks

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2009-03-10 18:29:45 +0800

Seen: 167 times

Last updated: Mar 11 '09

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