[
http://www.stripesframework.org/jira/browse/STS-631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11597#action_11597
]
Eric Palmitesta commented on STS-631:
-------------------------------------
Just for reference, I had the idea while reading the pragprog stripes book. On
page 121 it says
Stripes constructs a field label by taking the name of the field, and
separating words based on dots and uppercase letters. For example,
"contact.phoneNumber" becomes "Contact Phone Number".
On first read, I thought this was referring to the <s:label> tag (I mean, it
does say "constructs a field label"). Apparently it wasn't, so my thinking
was..."why shouldn't it?"
> empty <s:label /> could pull text from field, similar to <s:error />
> --------------------------------------------------------------------
>
> Key: STS-631
> URL: http://www.stripesframework.org/jira/browse/STS-631
> Project: Stripes
> Issue Type: Improvement
> Affects Versions: Release 1.5
> Reporter: Eric Palmitesta
>
> When one uses an <s:error name="user.emailAddress" /> tag on a form, "{1} is
> not a valid {0}" will become "blah is not a valid User Email Address".
> That's all well and good.
> When one uses a matching (and empty) <s:label name="user.emailAddress" />,
> unless there is a label= in an associated @Validate annotation (ie
> @Validate(field="email", label="Email Address"), or some text sitting in a
> resource bundle, the result is "Label could not find localized field name and
> had no body."
> Couldn't Stripes inspect the field and pull out "User Email Address" the same
> way <s:error /> does?
--
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
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development