Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1
-
None
-
None
Description
Recently I filled an issue in Tapestry for NumberTranslator, that it didn't allow for the comma (",") to be specified in the initializer. Turns out there's no way of escaping this character, as StringTokenizer is used on hivemind-lib to separate the characters.
http://issues.apache.org/jira/browse/TAPESTRY-887
This can be fixed in PropertyUtils / ClassAdaptor by adding a filter to this:
StringTokenizer tokenizer = new StringTokenizer(initializer, ",");
while (tokenizer.hasMoreTokens())
{ configurePropertyFromToken(target, tokenizer.nextToken()); }It's possible to iterate over the tokenizer and check if the last character of a token is "\", skipping the delimiter in that case.
Attachments
Attachments
Issue Links
- is depended upon by
-
TAPESTRY-887 NumberTranslator doesn't allow digit grouping separators to be specified
- Open