Sorry, late to this discussion.

One thought from this (and oither) thread - did you upgrade BeanUtils to
version 1.7.0? LazyValidatorForm depends on LazyDynaBean which is only in
Version 1.7.0 of BeanUtils. What makes me think that is it doesn't seem that
LazyValidator form works for you in any way - if it can't find the class
then there should be errors logged.

Wendy is right (I think) - if its a DynaBean then BeanUtils should ignore
any "regular" properties youve added and just use the DynaBean get/set
methods. Rather than extending LazyValidatorForm, you could define these as
beans in the struts-config - then LazyValidatorForm should try and
instantiate them:

<form-bean name="..." type="org.apache.struts.validator.LazyValidatorForm">
   <form-property name="adminForm"type="mypackage.AdminForm"/>
   <form-property name="chatForm"type="mypackage.ChatForm"/>
</form-bean>


Niall

----- Original Message ----- 
From: "Dakota Jack" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Monday, January 24, 2005 6:25 AM
Subject: Re: Where is the Struts 1.2.6 API for taglibs?


> I have the impression taht LazyValidatorForm was a little different
> and allowed us to use it in conjunction with a regular ActionForm, so
> I had my AdminForm, ChatForm, etc. subclasses of LazyValidatorForm.  I
> am thinking of a different solution, including maybe a subclass of
> <html:select> that does what I need.
>
> Jack
>
>
> On Sun, 23 Jan 2005 22:04:35 -0700, Wendy Smoak <[EMAIL PROTECTED]>
wrote:
> > From: "Dakota Jack" <[EMAIL PROTECTED]>
> > > If I use the code and LazyValidatorForm, then I get no HTML because
> > > it bails because of LazyValidatorForm.
> >
> > You really need to post the exact error messages.
> >
> > This isn't going to be a drop-in solution.  Just as in moving from
> > ActionForm to DynaActionForm, you have to change how you define [or not
in
> > this case] and access the form properties.
> >
> >
http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes
> >
> > "However, you cannot mix conventional properties and DynaProperties. A
> > conventional getter or setter on a DynaActionForm won't be found by the
> > reflection utilities."
> >
> > --
> > Wendy Smoak
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -- 
> ------------------------------
>
> "You can lead a horse to water but you cannot make it float on its back."
>
> ~Dakota Jack~
>
> "You can't wake a person who is pretending to be asleep."
>
> ~Native Proverb~
>
> "Each man is good in His sight. It is not necessary for eagles to be
crows."
>
> ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
>
> -----------------------------------------------
>
> "This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-mail
> and delete this message. Thank you for your cooperation."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to