-Igor
On 9/12/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
Revision: 7300
http://svn.sourceforge.net/wicket/?rev=7300&view=rev
Author: ivaynberg
Date: 2006-09-12 00:30:22 -0700 (Tue, 12 Sep 2006)
Log Message:
-----------
fixed bug where markup for <wicket:fragment>s could not be found
Modified Paths:
--------------
trunk/wicket/src/java/wicket/markup/MarkupFragment.java
Modified: trunk/wicket/src/java/wicket/markup/MarkupFragment.java
===================================================================
--- trunk/wicket/src/java/wicket/markup/MarkupFragment.java 2006-09-12 07:07:47 UTC (rev 7299)
+++ trunk/wicket/src/java/wicket/markup/MarkupFragment.java 2006-09-12 07:30:22 UTC (rev 7300)
@@ -26,6 +26,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import wicket.Component;
import wicket.WicketRuntimeException;
import wicket.util.string.AppendingStringBuffer;
import wicket.util.string.Strings;
@@ -159,6 +160,24 @@
{
return fragment;
}
+ /*
+ * if this component tag represents an auto component we
+ * need to recurse into it because auto components are
+ * transparent from the point of view of the markup path of
+ * a component
+ *
+ * eg <wicket:extend> generates an auto component that is
+ * not in the markup path expressions
+ *
+ */
+ if (tagId.startsWith(Component.AUTO_COMPONENT_PREFIX))
+ {
+ MarkupFragment frag = fragment.getChildFragment(id);
+ if (frag != null)
+ {
+ return frag;
+ }
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
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-autocvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-autocvs
------------------------------------------------------------------------- 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-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop