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

Kamil commented on WICKET-6436:
-------------------------------

Thank you Sven :)

By the way - in the light of what you said: should 
org.apache.wicket.model.Model have type "<T extends Serializable>" ?
{code}
public static <T extends Serializable> Model<T> of(T object)
public static <T extends Serializable> Model<T> of()
{code}

> Please add CompoundPropertyModel.of(T object) method
> ----------------------------------------------------
>
>                 Key: WICKET-6436
>                 URL: https://issues.apache.org/jira/browse/WICKET-6436
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 8.0.0-M6
>            Reporter: Kamil
>            Assignee: Sven Meier
>            Priority: Minor
>             Fix For: 8.0.0-M7
>
>
> org.apache.wicket.model.Model has very convenient method:
> {code}
> public static <T extends Serializable> Model<T> of(T object)
> {code}
> Could you please add simmilar method :
> {code}
> public static <T extends Serializable> CompoundPropertyModel<T> of(final T 
> object) {
>       return new CompoundPropertyModel<>(object);
> }
> {code}
> to org.apache.wicket.model.CompoundPropertyModel ?
> By the way CompoundPropertyModel has already 
> {code}
> public static <Z> CompoundPropertyModel<Z> of(IModel<Z> model)
> {
>       return new CompoundPropertyModel<>(model);
> }
> {code} 
> method, where Z is not Serializable. Is this ok?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to