[ 
https://issues.apache.org/jira/browse/WICKET-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532057
 ] 

Martijn Dashorst commented on WICKET-845:
-----------------------------------------

That would only confuse the matter. If you desperately need to do something 
like that, wrap it yourself in a IModel of some kind. The String constructor is 
there merely for convenience for the most common usecase.

We are not going to add constructors for Integer, Long, Date etc. too, as that 
would move us away from the preferred programming model.

> Label constructor
> -----------------
>
>                 Key: WICKET-845
>                 URL: https://issues.apache.org/jira/browse/WICKET-845
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.0-beta2
>            Reporter: Sean Sullivan
>             Fix For: 1.3.0-beta4
>
>
> Currently, the Label class provides this constructor:
>           public Label(final String id, String label)
> Can this be changed to:
>           public Label(final String id, CharSequence label)
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to