Hello,
I'm trying to find an example of a4j:jsFunction that passes AND returns a value between javascript and Seam/Java. I've found examples that do one or the other, but not both at the same time.
For example:
I have a Java api in a Seam component 'foo':
@Name("foo")
public class Foo {
public String sayHi(String msg) {
return "Hi, "+msg;
}
}
What should the a4j:jsFunction code look like to call sayHi(), passing in a message and reading the returned value? I've tried several variations and haven't been able to get both passing and returning working.
Thanks for any help!
Greg