Re: LazyLists

2007-03-14 Thread maestro
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

Re: LazyLists

2007-03-02 Thread Laurie Harper
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

Re: LazyLists

2007-03-02 Thread Glenn
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

Re: LazyLists

2007-03-01 Thread Laurie Harper
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 "

Re: LazyLists and dynamic forms

2005-04-12 Thread Stéphane Zuckerman
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

RE: LazyLists and dynamic forms

2005-04-09 Thread Richard Rozema
-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

Re: LazyLists and dynamic forms

2005-04-08 Thread Rick Reumann
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

RE: LazyLists and dynamic forms

2005-04-07 Thread Richard Rozema
-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

Re: LazyLists and dynamic forms

2005-04-07 Thread Rick Reumann
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

Re: LazyLists and dynamic forms

2005-04-07 Thread Rick Reumann
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

Re: LazyLists and dynamic forms

2005-04-07 Thread Niall Pemberton
What you have looks OK to me - except in the Action the reference to DynaValidatorForm - looks like your referencing the wrong class to me - the actual ActionForm flavour should be a BeanValidatorForm - but IMO its better to just cast it to a DynaBean, then your not fixed on an implementation. Som

Re: LazyLists and dynamic forms

2005-04-07 Thread Stéphane Zuckerman
Niall Pemberton a écrit : Its hard to help when all you say is "failed to make their examples work". Posting snippets of relevant bits of your struts-config.xml, jsp etc would help along with what actually happened. Sorry for the lack of details, I know I was really too vague. I am using Struts 1.2

Re: LazyLists and dynamic forms

2005-04-07 Thread Rick Reumann
Stéphane, you got Niall's attention and he is THE MAN, when it comes to this. So don't blow it! he he. Yes, give some specific examples of what you are trying to accomplish (also give some explanation of the business requirement - often times we assume things need to be done a certain way when

Re: LazyLists and dynamic forms

2005-04-07 Thread Niall Pemberton
Its hard to help when all you say is "failed to make their examples work". Posting snippets of relevant bits of your struts-config.xml, jsp etc would help along with what actually happened. Niall - Original Message - From: "Stéphane Zuckerman" <[EMAIL PROTECTED]> Sent: Thursday, April 07