Ok, this seems like a genuine issue to me. Unless someone can put me right 
about this I will raise it in JIRA, if I can remember how to do that. Thanks.

--- On Mon, 30/3/09, Phil Sladen <[email protected]> wrote:

From: Phil Sladen <[email protected]>
Subject: Re: [Stripes-users] Mapped property ignored if value is empty??
To: "Stripes Users List" <[email protected]>
Date: Monday, 30 March, 2009, 11:09 AM

I just want Stripes to populate the map with the value of the field, even 
though the value maybe empty. I haven't imposed any validation constraints. (I 
imagined the default would be to put null as the value in the map, but it would 
be perfect if it used my custom property binder which puts an empty string in 
instead of null for strings.) Thanks for any help with this.

--- On Mon, 30/3/09, Héctor López <[email protected]> wrote:

From: Héctor López <[email protected]>
Subject: Re: [Stripes-users] Mapped property ignored if value is empty??
To: "'Stripes Users List'" <[email protected]>
Date: Monday, 30 March, 2009, 10:24 AM




 
 







What are you trying to
do? Do you want Stripes to raise a validation error because you have a 
�...@validate(required=true)”?
Or do you want Stripes to insert an empty string in that map because “”
is a valid value? 

   









De: Phil Sladen
[mailto:[email protected]] 

Enviado el: lunes, 30 de marzo de
2009 11:04

Para:
[email protected]

Asunto: [Stripes-users] Mapped
property ignored if value is empty?? 



   


 
  
  I have an actionbean
  property "HashMap<String,String> tagMap" that is used to
  gather dynamically generated form values from input fields named like
  "tagMap[propName]". Works fine as long as the value in the form
  field is not empty. But if it is empty, it appears that
  DefaultActionBeanPropertyBinder.validateRequiredFields() deliberately ignores
  the form field. Please can anyone explain such logic and how I can get mapped
  values to work sensibly even when the values are empty. Thanks. 
  
 


   



 


-----Inline Attachment Follows-----

------------------------------------------------------------------------------

-----Inline Attachment Follows-----

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users




      
-----Inline Attachment Follows-----

------------------------------------------------------------------------------

-----Inline Attachment Follows-----

_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users



      
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to