Author: niallp
Date: Fri Apr 29 06:15:10 2005
New Revision: 165304
URL: http://svn.apache.org/viewcvs?rev=165304&view=rev
Log:
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/taglib/trunk/src/java/org/apache/struts/taglib/html/BaseHandlerTag.java
Modified:
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/BaseHandlerTag.java
URL:
http://svn.apache.org/viewcvs/struts/taglib/trunk/src/java/org/apache/struts/taglib/html/BaseHandlerTag.java?rev=165304&r1=165303&r2=165304&view=diff
==============================================================================
---
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/BaseHandlerTag.java
(original)
+++
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/BaseHandlerTag.java
Fri Apr 29 06:15:10 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]