[
https://issues.apache.org/jira/browse/WICKET-6436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116954#comment-16116954
]
Sven Meier commented on WICKET-6436:
------------------------------------
They have to be serializable when passed I'm directly, but don't have to when
they are inside another model.
Hope this makes sense.
> 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)