Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES_SPEC_PUBLIC-1218
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Ed Burns
Reporter: AnnTea
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaserverfaces-spec-public

Validation error message for byte should state -127 to 128

Created: 16/Aug/13 03:45 PM   Updated: 20/Aug/13 02:21 PM   Resolved: 20/Aug/13 02:21 PM
Component/s: Validation/Conversion
Affects Version/s: None
Fix Version/s: 2.3

Time Tracking:
Not Specified

Tags:
Participants: AnnTea and Ed Burns


 Description  « Hide

The resource bundle for standard validation messages (see JSR-344 section 2.5.2.4) state
javax.faces.converter.ByteConverter.BYTE={2}: ''{0}'' must be a number between 0 and 255.
and
javax.faces.converter.ByteConverter.BYTE_detail={2}: ''{0}'' must be a number between 0 and 255. Example: {1}

My best understanding is that that is wrong and that they should state
... a number between -127 and 128 ...

(I get the first of these error messages in a facelets page when entering values outside of -127..128 for a byte, so the validation itself works as I expect it but the validation message to the user is misleading)



Sort Order: Ascending order - Click to sort in descending order
Ed Burns made changes - 20/Aug/13 02:35 AM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 2.3 [ 16372 ]
Resolution Fixed [ 1 ]
Ed Burns made changes - 20/Aug/13 02:21 PM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Ed Burns made changes - 20/Aug/13 02:21 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]