Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Niall Pemberton
A word of caution - Commons BeanUtils[1] handles Maps and JavaBeans/DynaBeans differently and doing this may change how the ActionForm is populated - for simple properties it would probably be fine, but I'm not sure that indexed properties would work the same way. This related bug may be of inter

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
Here's a better solution: Extend LazyValidatorForm to implement java.util.Map (perhaps BeanValidatorForm, which LazyValidatorForm extends from, should do this?) Then you could access ${myForm.myProperty} in the JSTL. Lance Semmens wrote: Use LazyDynaForm.getMap() eg ${myForm.map.myProperty}

Re: Accessing LazyValidatorForm properties with EL

2006-06-23 Thread Lance Semmens
Use LazyDynaForm.getMap() eg ${myForm.map.myProperty} Scott Van Wart wrote: I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a complaint about accessing myProperty of bean myForm (since there's no getMyProperty(

Re: Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Scott Van Wart
Niall Pemberton wrote: You can get a reference to the Map underlying the LazyValidatorForm ${myForm.map.myProperty} Excellent, thanks! - Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Niall Pemberton
You can get a reference to the Map underlying the LazyValidatorForm ${myForm.map.myProperty} Niall On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a compla

Accessing LazyValidatorForm properties with EL

2006-06-22 Thread Scott Van Wart
I have a class MyForm extends LazyValidatorForm, mapped with name myForm to myAction: ${myForm.myProperty} The EL fails with a complaint about accessing myProperty of bean myForm (since there's no getMyProperty() accessor). How can I access properties with EL? I have value="${myFor