Apologies for taking so long to post. I was side tracked with other stuff.
It does mention in the Wiki:
http://wiki.apache.org/struts/StrutsCatalogLazyList
In a small line: If you define the following types of getter/setter methods
for your indexed property, in JDK 1.3 you shouldn't have any prob
My first guess would be that your accessor methods are inconsistent:
public List getBeneficiaries()
public BeneficiaryVO getBeneficiaries(int index)
public void setBeneficiaries(BeneficiaryVO beneficiaryVO)
The setter is wrong, which will confuse the property introspection. On
the other h
Thanks for the help its very appreciated.
This code has been working for over a year without any problems in a Java
1.4 and J2EE 1.3.
The LazyList hand cranking can be found here:
http://wiki.apache.org/struts/StrutsCatalogLazyList
Here are the plain methods in the InsuranceForm:
private Benefic
Glenn wrote:
Hi,
I have an application that I'm moving over to J2SE1.5 and J2EE 1.4.
I am getting an error when executing a JSP:
javax.servlet.jsp.el.ELException: Unable to find a value for
"beneficiaries"
in object of class "hronline.secure.personal.insurances.InsuranceForm"
using
operator "
Hi,
I have an application that I'm moving over to J2SE1.5 and J2EE 1.4.
I am getting an error when executing a JSP:
javax.servlet.jsp.el.ELException: Unable to find a value for "beneficiaries"
in object of class "hronline.secure.personal.insurances.InsuranceForm" using
operator "."
If I remove t
Hello, and sorry for the late answer...
Niall Pemberton a écrit :
What you have looks OK to me - except in the Action the reference to
DynaValidatorForm - looks like your referencing the wrong class to me -
You're right, I just mistyped it, but it is a BeanValidatorForm.
the
actual ActionForm flav
-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 8 april 2005 16:04
Aan: Struts Users Mailing List
Onderwerp: Re: LazyLists and dynamic forms
> Sorry, I should have been more clear, I've been using the nested tag so
> long I forgot that f
Richard Rozema wrote the following on 4/7/2005 5:57 PM:
I'm pretty new on struts programming and I've read to avoid using session.
The only real reason I see not to use session is that if I stick 2 instances
of my search tile in the same page (and I will do so), they will share the
same property na
-Oorspronkelijk bericht-
Van: Rick Reumann [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 7 april 2005 22:50
Aan: Struts Users Mailing List
Onderwerp: Re: LazyLists and dynamic forms
The code posted was an attempt to help Stephane fix his problems. Your
comments are still very much
Rick Reumann wrote the following on 4/7/2005 4:50 PM:
I also don't see what you are trying to do here...
values is an Object[] (which I also don't think will play well with
BeanUtils - I'd use List). How do you plan on entering in a String,
which is what input type='text' will do and have it pop
Richard Rozema wrote the following on 4/7/2005 4:20 PM:
Stephane,
The problem I am now facing is that for this instance of the searchForm to
still exist
later on in the both .jsp's and the ListAction, the form needs to be stored
into session
scope. If I don't store it there, a new instance will be
naForm = (DynaValidatorForm) form;
> // here is the line that makes it all crumble...
> Person[] persons = (Person[]) dynaForm.get("persons");
>
> request.setAttribute("persons",persons);
> return mapping.findForward("ok");
> }
> }
>
> As I sai
ance will be created upon every
call and I
will be given an empty List for criteria every time. However, since I want
to make the
pages into a tile I don't want the searchForm to go into session scope.
I hope this does help you, Stephane. And of course, any suggestions are
welcome (from anyone).
Richard
rm.get("persons");
request.setAttribute("persons",persons);
return mapping.findForward("ok");
}
}
As I said before, when it is about "manual" forms, everything's fine, I
use LazyLists, and it works (thank you so much, Rick
eir examples work
with LazyDynaBeans ...
Could someone put me back on track please ? I've managed to use
LazyLists in classical ActionForms, and if there is no other choice I
will continue that way, but since I've got all my other ActionForms in
>
Sent: Thursday, April 07, 2005 10:05 AM
> Hello,
>
> I've read carefully the Struts' wiki page regarding indexed properties
> and how to deal with them... but I failed to make their examples work
> with LazyDynaBeans ...
>
> Could someone put me back on tr
Hello,
I've read carefully the Struts' wiki page regarding indexed properties
and how to deal with them... but I failed to make their examples work
with LazyDynaBeans ...
Could someone put me back on track please ? I've managed to use
LazyLists in classical ActionForms, and
17 matches
Mail list logo