LazyLists and dynamic forms

2005-04-07 Thread Stéphane Zuckerman
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 if there is no other

LazyLists and dynamic forms

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

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

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 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 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 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 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 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-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-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-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