[
https://issues.apache.org/jira/browse/WICKET-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114518#comment-13114518
]
Pranav Kacholia commented on WICKET-4085:
-----------------------------------------
It can definitely be written in 5 minutes, but that is also a reason for it to
be included in my opinion. I end up using it a lot especially for the display
of numbers in the form of currency.
String resource model seems a bit of overkill for that especially when you
don’t need to pick something out of a properties file.
As far as handling the errors goes, i defer to the experience of the wicket
devs in this case.
The illegalargumenterror is thrown when the formatter is unable to format the
particular object so it should be in error in my opinion.
that NPE exception is a mistake. I was doing something else in my code there.
Should havejust let the exception propogate.
Anyway, as i said, its something i use a lot, so i thought i would put it in a
patch and submit it.
> Formatted label component
> -------------------------
>
> Key: WICKET-4085
> URL: https://issues.apache.org/jira/browse/WICKET-4085
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.0, 1.5.1
> Reporter: Pranav Kacholia
> Priority: Trivial
> Attachments: FormattedLabel.patch
>
>
> A component that can be used to display formatted text. Especially numbers
> example Currency.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira