You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2017/08/06 07:30:00 UTC
[jira] [Resolved] (WICKET-6436) Please add
CompoundPropertyModel.of(T object) method
[ https://issues.apache.org/jira/browse/WICKET-6436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-6436.
--------------------------------
Resolution: Fixed
Assignee: Sven Meier
Fix Version/s: 8.0.0-M7
I've added a factory method as proposed.
ChainingModel logs a warning now, if the target object isn't serializable.
> 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)