Form#getMaxSize() -> no custom format
-------------------------------------
Key: WICKET-2174
URL: https://issues.apache.org/jira/browse/WICKET-2174
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4-RC2
Reporter: Jan Loose
Hi,
I found problem with format of 'maxSize' property in component Form:
final Map<String, Object> model = new HashMap<String, Object>();
model.put("exception", e);
model.put("maxSize", getMaxSize());
... the main problem is if you want modify 'look and feel' of the Bytes format
in error messages.
Can you add e.g. new method String formatMaxSize() or something similar? The
other solution is modification of toString of bean Bytes to get results look
like 300kB (now there is 300K ... this is not good for common users). Or is
there other simple way how to do this?
Regards,
H.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.