I haven't read any of this thread, so forgive me if I'm totally off base
here. If we're talking about a velocity view, $someMethod() won't work
afaik. Anything in the form $foo is considered a property, not a method,
and can't accept parameters. $foo looks for getFoo() in the context. This
came up in last weeks meeting (and the minutes are on their way, I promise
:) ). There isn't a way to call a method in an action from a velocity
view. The work around is to add a method to your action that returns
`this`:

public MyAction getMyAction() {
  return this;
}

Then you can do $action.setSomeMethod(...) (I think?).

Somebody please correct me if I'm wrong. Please :)

--Erik


> > <input
> >   type="checkbox"
> >   name="$someMethod($set.name)"
> >   value="$set.name">$set.name
> >
> > Which would call $someMethod, passing in $set.name?



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to