webtier@glassfish.java.net

[webtier] Re: Passing ajax listener into a component

From: Ed Burns <edward.burns_at_oracle.com>
Date: Mon, 26 Apr 2010 12:25:04 -0700

>>>>> On Mon, 26 Apr 2010 09:53:22 -0700 (PDT), webtier_at_javadesktop.org said:

JW> Thanks for the pointer. I had actually already read that and am
JW> wondering which part of my attribute doesn't conform to the VDL
JW> specification. I tried changing the return type of void to
JW> java.lang.Void with no change in behavior. I was able to work
JW> around the problem by simply not passing the listener, but would
JW> like to figure out why it doesn't work.

Here's a sample app that does do this.

If you checkout the mojarra source code, you'll find that the ezcomp02
sample in jsf-demo/sandbox/ezcomp02 has a file that does this.
src/main/webapp/resources/ezcomp/loginPanel.html

the cc-metadata, also in the sandbox, also passes a method in this way.

Ed

-- 
| edburns_at_oracle.com | office: +1 408 884 9519
| homepage:          | http://ridingthecrest.com/