and its in the 1.2 branch, will make it into 1.2.1

-Igor


On 6/27/06, Johan Compagner <[EMAIL PROTECTED] > wrote:
i think we can do this change.
Because i think it will pretty much always goes wrong other wise.  (that it tries to get an _expression_ of that component but that component is "not part" of that model it is not its model)

johan



so what do other core committers think?

Index: D:/ws/wicket_1_2/src/java/wicket/model/AbstractPropertyModel.java
===================================================================
--- D:/ws/wicket_1_2/src/java/wicket/model/AbstractPropertyModel.java    (revision 6287)
+++ D:/ws/wicket_1_2/src/java/wicket/model/AbstractPropertyModel.java    (working copy)
@@ -75,7 +75,13 @@
     {
         if (nestedModel instanceof IModel)
         {
-            return ((IModel)nestedModel).getObject(component);
+            final IModel model=(IModel)nestedModel;
+            if (model instanceof ICompoundModel) {
+                return model.getObject (null);
+            } else {
+                return model.getObject(component);
+            }
+           
         }
         return nestedModel;
     }


-Igor


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to