Author: niallp
Date: Fri Apr 29 06:20:17 2005
New Revision: 165305
URL: http://svn.apache.org/viewcvs?rev=165305&view=rev
Log:
Port to 1.2.x branch - Retrieve FormTag stored in Request scope, rather than
the TagSupport's findAncestorWithClass() method. This enables the
disabled/readonly form setting to work accross Tiles.
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
URL:
http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java?rev=165305&r1=165304&r2=165305&view=diff
==============================================================================
---
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
(original)
+++
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
Fri Apr 29 06:20:17 2005
@@ -22,6 +22,7 @@
import java.lang.reflect.Method;
import java.util.Locale;
+import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
@@ -861,7 +862,8 @@
FormTag formTag = null;
if ((doDisabled && !getDisabled()) ||
(doReadonly && !getReadonly())) {
- formTag = (FormTag)findAncestorWithClass(this, FormTag.class);
+ formTag = (FormTag)pageContext.getAttribute(Constants.FORM_KEY,
+
PageContext.REQUEST_SCOPE);
}
// Format Disabled
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]