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

Mohamed edited comment on WICKET-2695 at 1/25/10 10:51 AM:
-----------------------------------------------------------

another thing is the code of load method :

LoadableDetachableModel<TreeModel> treeModel = new 
LoadableDetachableModel<TreeModel> () {
 @Override
    protected TreeModel load() {
        return DataModel.getTableTreeModel();
    }
};

getTableTreeModel() is a static method which returns a copy of treemodel via 
serialization.

... I found the issue. The issue was that I the static method 
getTableTreeModel() returns a new instance of treemodel after each call to the 
load() method. The solution is to save an instance of treemodel within a 
variable and to return the variable on the load() method.

      was (Author: mohamed.a):
    another thing is the code of load method :

LoadableDetachableModel<TreeModel> treeModel = new 
LoadableDetachableModel<TreeModel> () {
 @Override
    protected TreeModel load() {
        return DataModel.getTableTreeModel();
    }
};

getTableTreeModel() is a static method which returns a copy of treemodel via 
serialization.
  
> expand icon link doesn't work on treetable component
> ----------------------------------------------------
>
>                 Key: WICKET-2695
>                 URL: https://issues.apache.org/jira/browse/WICKET-2695
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4.5
>         Environment: tomcat 6, xp, wicket 1.4.5, wicket-extensions 1.4.5 maven
>            Reporter: Mohamed
>            Assignee: Igor Vaynberg
>            Priority: Blocker
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I created my own component => i added the treetable on 
> org.apache.wicket.markup.html.panel.Panel. I used the code of 
> http://www.wicket-library.com/wicket-examples/nested/?wicket:bookmarkablePage=:org.apache.wicket.examples.ajax.builtin.tree.TreeTablePage
>  to test that.
> I use the LoadadbleDetachableModel as model and it work correctly because the 
> "expand All" and "Collapse All" works correctly but when I click on the 
> expand icon (folder icon) I see on the task manager there is something has 
> been done but the treetable is not expanded as we can expected.
> Thank you for your help.

-- 
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