TextArea trims content when saved
---------------------------------
Key: WICKET-1308
URL: https://issues.apache.org/jira/browse/WICKET-1308
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.0-final
Environment: java 5 on safari and firefox, though it does not matter ;)
Reporter: Andrew Williams
the TextArea uses the default convertValue( String[] ) method which trims it's
content.
This causes me problems, so my component needs to be defined thus:
add( new TextArea( "content" )
{
protected Object convertValue(String[] value) throws
ConversionException
{
return value != null && value.length > 0 && value[0] !=
null ? value[0] : null;
}
});
Which overrides and removes the trim() call.
Suggest this override should be in TextArea, maybe optional?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.