Closed leccyril closed 1 year ago
Why did you create two issues - this one and https://issues.apache.org/jira/browse/WICKET-7023 ?
because i did not know where to create it because here it seems to be related another lib ? so have i to close this one ? amnd let other opened ?
In NestedTree abstract class (and Maybe in other components or classes) we use the model comparaison instead of object comparaison.
In IModel or in LoadableDetachableModel We don't have any equals method defined (no default nothing), it will use the default one what is false.
example (l111) of NestedTree.java in wicket-extensions library
Instead of comparing model.equals(branch.getModel() we must compare the object itself :
Objects.equals( model.getObject(), branch.getModelObject() )