Re: Maps in Forms

2004-08-25 Thread Michael McGrady
Rick Reumann wrote: As I side I really don't like Map backed ActionForms (I used to love them:) for the same reason that I don't like DynaForms (basically a Map form). The potential for problems later setting the properties is what bothers me. There isn't any compile time safety. Nothing would

Re: Maps in Forms

2004-08-25 Thread Michael McGrady
Bill Siggelkow wrote: Michael McGrady wrote: Rick Reumann correctly pointed out that I just need to use map.test rather than value(test). Thanks. True, map.test will work; I was answering the original question about why value(test) did not work. ---

Re: Maps in Forms

2004-08-25 Thread Bill Siggelkow
Michael McGrady wrote: Rick Reumann correctly pointed out that I just need to use map.test rather than value(test). Thanks. True, map.test will work; I was answering the original question about why value(test) did not work. -

Re: Maps in Forms

2004-08-25 Thread Michael McGrady
Bill Siggelkow wrote: Michael, for a map-backed property to work with the property="value(key)" syntax the key must be defined as a String; the methods must follow the pattern: public Object getFoo(String key) {…} public void setFoo(String key, Object value) {…} Try that out and let me know if i

Re: Maps in Forms

2004-08-25 Thread Bill Siggelkow
Michael, for a map-backed property to work with the property="value(key)" syntax the key must be defined as a String; the methods must follow the pattern: public Object getFoo(String key) {…} public void setFoo(String key, Object value) {…} Try that out and let me know if it works for you. Bill

Re: Maps in Forms

2004-08-25 Thread Rick Reumann
As I side I really don't like Map backed ActionForms (I used to love them:) for the same reason that I don't like DynaForms (basically a Map form). The potential for problems later setting the properties is what bothers me. There isn't any compile time safety. Nothing would prevent you in your

Re: Maps in Forms

2004-08-25 Thread Rick Reumann
Michael McGrady wrote: Yet, when I put setValue("test","TEST") into the session, I get the following exception from the attempted use of : "No getter method for property value(test) of bean formName" try: property="map.test" that should call getMap and then retrieve the value -- Rick