Re: [s2] Making LazyDynaBean work with ModelDriven interface

2006-12-05 Thread Mark Menard
On 12/5/06 12:25 PM, "Mark Shifman" <[EMAIL PROTECTED]> wrote: > 2. The textfield seems to get a String[] rather than a String and I > don't have any idea how to do it differently. I don¹t know if you can do this because I've never really worked with Struts 1. Can you make the Map in your form a

[s2] Making LazyDynaBean work with ModelDriven interface

2006-12-05 Thread Mark Shifman
implements ModelDriven{ private LazyDynaBean f = new LazyDynaBean(); public String execute() throws Exception { String[] text_field = (String[])f.get("text_field"); //do something with the text_field that came from LazyDynaBean as a String array

Re: [s2] LazyDynaBean and ModelDriven interface

2006-12-04 Thread Mark Shifman
Mark Shifman wrote: Does anybody have an example of using a LazyDynaBean with the ModelDriven interface? http://struts.apache.org/2.x/docs/struts-1-solutions.html implies that it should work. I have a simple action: public final class MyAction extends ActionSupport implements ModelDriven

[s2] LazyDynaBean and ModelDriven interface

2006-12-04 Thread Mark Shifman
Does anybody have an example of using a LazyDynaBean with the ModelDriven interface? http://struts.apache.org/2.x/docs/struts-1-solutions.html implies that it should work. I have a simple action: public final class MyAction extends ActionSupport implements ModelDriven{ private LazyDynaBean

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
th this new class. Thanks very much for your help, Ryan -- View this message in context: http://www.nabble.com/how-do-I-use-a-LazyDynaBean-as-an-ActionForm--tf1925661.html#a5275174 Sent from the Struts - User forum at Nabble.com. -

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
- From: Yanroy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 1:53 PM To: user@struts.apache.org Subject: RE: how do I use a LazyDynaBean as an ActionForm? I've seen the LazyValidatorForm referenced on a number of websites. I actually tried it before I tried the LazyDynaBean, but it c

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
I've seen the LazyValidatorForm referenced on a number of websites. I actually tried it before I tried the LazyDynaBean, but it causes an exception. Apparently there's some related class missing? Here's what I get from tomcat when I try to use it: java.lang.NoClassDefFoundEr

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
The class specified by the type attribute in your form bean must be a concrete implementation of org.apache.struts.action.ActionForm (as the signature of the Action.execute method indicates). You can create your own implementation of ActionForm backed by a LazyDynaBean, or try

how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Yanroy
Hi, You may recall I posted a message similar to this one several days ago. I never received a reply, so I'm hoping that this shorter (and hopefully simpler) version will get one. I'm using a LazyDynaBean as the form associated with a strut, which the docs seem to say will work by bei

Re: LazyDynaBean question

2005-02-09 Thread Niall Pemberton
Now I'm just confused. sorry. Niall - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Wednesday, February 09, 2005 7:15 PM Subject: RE: LazyDynaBean question > But I still have to implem

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
5 3:30 AM > To: Struts Users Mailing List > Subject: Re: LazyDynaBean question > > Yes BeanValidatorForm is just a DynaBean wrapper - it can > wrap either other DynaBean or POJO beans. FormBeanConfig has > become the ActionForm factory (since Struts 1.2) which makes > it s

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
5 3:30 AM > To: Struts Users Mailing List > Subject: Re: LazyDynaBean question > > Yes BeanValidatorForm is just a DynaBean wrapper - it can > wrap either other DynaBean or POJO beans. FormBeanConfig has > become the ActionForm factory (since Struts 1.2) which makes > it s

Re: LazyDynaBean question

2005-02-09 Thread Niall Pemberton
Yes BeanValidatorForm is just a DynaBean wrapper - it can wrap either other DynaBean or POJO beans. FormBeanConfig has become the ActionForm factory (since Struts 1.2) which makes it straight forward to plug in your own mechanism by overriding the createActionForm() method. You can get it to defaul

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Monday, February 07, 2005 1:01 PM > To: Struts Users Mailing List > Subject: Re: LazyDynaBean question > > If you wanted to have Struts use different flavours of > BeanValidatorForm to wrap objects then you would have to > c

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Monday, February 07, 2005 1:01 PM > To: Struts Users Mailing List > Subject: Re: LazyDynaBean question > > If you wanted to have Struts use different flavours of > BeanValidatorForm to wrap objects then you would have to > c

Re: LazyDynaBean question

2005-02-07 Thread Niall Pemberton
The "regular" set() method (i.e. not the indexed/mapped setters) doesn't call the get(name) method - so you could override the other getters/setters implementing your own behaviour as you suggest. Alternatively you could "wrap" the LazyDynaBean and implement your own &quo

RE: LazyDynaBean question

2005-02-07 Thread Joe Hertz
Yep. I was afraid you'd say something like that. I'll see what I can do about moving to 1.2.6. On the subject: Is there a LazyDynaBean implementation that keeps the standard dynabean behavior on the get() methods? I don't want to touch any of the createProperty() methods beca

RE: LazyDynaBean question

2005-02-07 Thread Joe Hertz
Yep. I was afraid you'd say something like that. I'll see what I can do about moving to 1.2.6. On the subject: Is there a LazyDynaBean implementation that keeps the standard dynabean behavior on the get() methods? I don't want to touch any of the createProperty() methods beca

Re: LazyDynaBean question

2005-02-07 Thread Niall Pemberton
LazyValidatorForm() { super(new LazyDynaBean()); setPathValidation(true); } } ... and then cofigure it in the usual way. Niall - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> Sent: Monday, February 07, 2005 5:37 PM > I'm using Struts 1.

LazyDynaBean question

2005-02-07 Thread Joe Hertz
I'm using Struts 1.2.4. If in my struts-config I have something like this: How can I get to the resulting form object to setPathValidation(true)? Is there a way I can tell Struts what particular BeanValidatorFom subclass to be using? Going to 1.2.6 is not an option right now. TIA -Joe -

LazyDynaBean question

2005-02-07 Thread Joe Hertz
I'm using Struts 1.2.4. If in my struts-config I have something like this: How can I get to the resulting form object to setPathValidation(true)? Is there a way I can tell Struts what particular BeanValidatorFom subclass to be using? Going to 1.2.6 is not an option right now. TIA -Joe -

[GOOD] LazyDynaBean works terrific

2005-01-19 Thread Pilgrim, Peter
http://www.niallp.pwp.blueyonder.co.uk/lazydynabean.html http://www.niallp.pwp.blueyonder.co.uk/lazyactionform.html Niall These `LazyDynaBean' and `LazyActionForm' classes really are fantastic. Just had a chance to crank out a simple Struts web app for a client. I copied and ren

LazyDynaBean News

2004-08-06 Thread Niall Pemberton
I recently donated the LazyDynaBean and LazyDynaClass that I developed to the BeanUtils project and these have recently been released in the BeanUtils 1.7.0 release. * Documentation: http://jakarta.apache.org/commons/beanutils/apidocs/org/apache/commons/beanutils/package-summary.html

LazyDynaBean

2004-06-03 Thread Bill Siggelkow
I was looking at Nialls LazyDynaBean and was wanting good use cases for using these classes. I am working on a book and wanted to include something about using these. Niall feel free to e-mail directly at billsigg at bell south dot net. Bill Siggelkow