A few things, Wendy.  I think you are on the right track.  I had two
difficulties.

I solved one with the -*- and the @ as a stop gap solution.  I
customarily use the property value of the html image button to pass
the method with myMethod.method.  This will not work with
LazyValidatorForm.  So, I changed that to [EMAIL PROTECTED], having
decided that I would rather have a char ('@') then a String ("-*'-")
in place of the original char ('.').  This solved that problem.  The
utility classes have never had a problem with that until
LazyValidatorForm.

The second one probably does have something to do with how I am
"farming" the values.  Prior to using LazyValidatorForm, I have some
values in the form as related to <html:form> and some not.  E.g. I
have a combination of <input type='hidden'> for example and
<html:hidden>.  I have noticed that I am not getting any values in my
Actions from my ActionForms by my normal, Struts 1.1, coding when I
used LazyValidatorForm.  All those values are blank, even the ones
with <html:text> etc.

Why would that be?  It must be that I have to recode farming all
values for LazyValidatorForm?  I wish I had an ActionForm class that
would allow me to have parametr name/values without getters and
setters in the ActionForm but without other requirements.  Apparently
LazyValidatorForm has other requirements which I must learn?

I guess I am going to have to open up the documentation war and learn
about LazyValidatorForm and maybe rewrite something similiar?  Maybe
not too.  I just don't want to change all my code to do this simple
thing.

Jack


On Sun, 23 Jan 2005 16:22:30 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Dakota Jack" <[EMAIL PROTECTED]>
> > I think there is some way that LazyValidatorForm is wedded to the
> > struts framework that I don't understand.  I will have to check it
> > out.  For the moment, I cannot use it with my Actions.  Is there some
> > special way we are suppposed to get the values from the form with
> > LazyValidatorForm?
> 
> How are you trying to get the values out of the form?  It depends on the
> type of the property-- String, Mapped or Indexed.  Some variation of:
> get(String propName),  get(String propName), String key, or get(String
> propName, int index) should work.  (And they all return Object.)
> 
> I just flipped through the code, and there's nothing special in there
> _except_ that it all depends on JavaBeans.  That means that if your naming
> doesn't conform, it can fail in interesting ways.  One of your first posts
> about this was someObject.method not working-- and then you seem to have
> switched to -*- and  @ in the names, which I doubt BeanUtils is going to be
> happy with.
> 
> All of these classes are *very* verbose, set them to DEBUG, and the log
> files should tell you exactly what is going on.  (If that doesn't work, run
> it in a debugger like JSwat.)  Are you getting NPE's?  Is the form bean not
> getting populated at all, or are only some of the properties not coming
> through?
> 
> --
> 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]

Reply via email to