You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/08/07 15:23:12 UTC

[jira] [Commented] (WICKET-4941) Component.initModel() does not cause parent models to be initialized

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

ASF subversion and git services commented on WICKET-4941:
---------------------------------------------------------

Commit 7042f88549f9f14e89ad7a37916ab17470f8e5ac in wicket's branch refs/heads/wicket-6.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=7042f88 ]

WICKET-4941 Component.initModel() does not cause parent models to be initialized


> Component.initModel() does not cause parent models to be initialized
> --------------------------------------------------------------------
>
>                 Key: WICKET-4941
>                 URL: https://issues.apache.org/jira/browse/WICKET-4941
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.4.0
>         Environment: All
>            Reporter: Andrew Geery
>            Priority: Minor
>         Attachments: myproject.zip
>
>
> When using a nested CompoundPropertyModel, properties are not resolved against the correct model.  One way to deal with this is to override the IModel<?> initModel() method.  However, this method does not work unless getDefaultModel() has been called by the panel with the initModel() method before components are added.  The issue is that initModel() does not call getDefaultModel() on the parent.  This means that when trying to find the parent for resolving a CPM, the wrong CPM may be found because initModel() has not been called for the containing panel. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)