I'll ping the OGNL guys... I asked about it before but I never got a
response. Ideally I'd like to see something like naming the input, "foo(123,
?)" and then the question mark would be a binding for the actual input.

-Pat

----- Original Message -----
From: "M�ns af Klercker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 10, 2003 1:29 PM
Subject: RE: [OS-webwork] Setters that take 2 parameters in Actions


> Hi Douglass,
>
> OGNL/XWork/WebWork2 doesn't support this, but we needed this kind of
support
> in our (Swing) app, so we have patched OGNL to support this kind of
"mapped
> property". Basically, your tag would look like:
>
> <ui:textarea label="'an editor'" name="html['editor']" value="html"
> rows="20" cols="80"/>
>
> The patch is *very much* a hack but it seems to be working OK for us, and
I
> can provide you with a patched ognl.jar + source if you want to (OGNL is
> kind of tricky to compile, and the code is... hairy, so it might be easier
> just to use the patched jar). We'll submit the patch to OGNL eventually,
if
> we can do it without embarrasing ourselves too much ;-)
>
> cheers,
> /M�ns
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of
> > Robert Douglass
> > Sent: den 9 juni 2003 21:29
> > To: WebWork
> > Subject: [OS-webwork] Setters that take 2 parameters in Actions
> >
> >
> > The action that I've written would like to have a setter called with 2
> > parameters. How do I write a JSP tag that passes populates this method
> > correctly? Is this even possible?
> >
> > the setter:
> > public void setHtml(String id, String html) {...
> >
> > the jsp before I got the idea that setHtml needed String id as well:
> > <ui:textarea label="'an editor'" name="'editor'" value="html" rows="20"
> > cols="80"/>
> >
> > thanks,
> >
> > Robert Douglass
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> > thread debugger on the planet. Designed with thread debugging features
> > you've never dreamed of, try TotalView 6 free at www.etnus.com.
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to