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
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
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
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
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.
-
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
-
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
-
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
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
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
24 matches
Mail list logo