[ 
http://www.stripesframework.org/jira/browse/STS-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11568#action_11568
 ] 

Ram commented on STS-625:
-------------------------

i originally thought that validation worked...It doesn't. I always get the 
"field is required" message.. even if i enter a value.

Does validation work for Map fields ? How do you specify validation for map 
fields ?

> auto focus on error - map fields
> --------------------------------
>
>                 Key: STS-625
>                 URL: http://www.stripesframework.org/jira/browse/STS-625
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: Release 1.5
>            Reporter: Ram
>            Priority: Minor
>
> Auto focus on error does not work for map fields.
> For example,
> <stripes:text name="fieldMap[field1]"/>
> And in the ActionBean,
> @ValidateNestedProperties( {
>        @Validate(field="field1", required=true)
> })
> private Map<String, String> fieldMap;
> Validation works as expected. But the auto focus doesn't work and i see the 
> following in the logs.
> SEVERE: Form with action [/test/Test.action] has 'focus' set to '', but did 
> not find a field with matching name to set focus on.
> Stepping through the code in the IDE showed that the 
> "setFocusOnFieldIfRequired" method in FormTag class doesn't find the field 
> because the field name in the Validation error is "fieldMap.field1" ( vs 
> "fieldMap[field1]" in the Form/JSP ).
> Shouldn't the original field name be preserved ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to