ASF Bugzilla – Attachment 25665 Details for
Bug 49526
c:set does not remove variables from ELContext VariableMapper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove variable from VariableMapper if page scope
taglibs-49526.patch (text/plain), 1.13 KB, created by
Jeremy Boynes
on 2010-06-29 23:48:43 UTC
(
hide
)
Description:
Patch to remove variable from VariableMapper if page scope
Filename:
MIME Type:
Creator:
Jeremy Boynes
Created:
2010-06-29 23:48:43 UTC
Size:
1.13 KB
patch
obsolete
>Index: src/main/java/org/apache/taglibs/standard/tag/common/core/SetSupport.java >=================================================================== >--- src/main/java/org/apache/taglibs/standard/tag/common/core/SetSupport.java (revision 959167) >+++ src/main/java/org/apache/taglibs/standard/tag/common/core/SetSupport.java (working copy) >@@ -128,12 +128,10 @@ > //set variable in var Mapper > vm.setVariable(var, (ValueExpression)result); > } else { >- /* >- //else if not valueExpression - make sure to remove it from the Var mapper >- //if the scope is page, should I remove this? >- if (vm.resolveVariable(var)!=null) { >+ // make sure to remove it from the VariableMapper if we will be setting into page scope >+ if (scope == PageContext.PAGE_SCOPE && vm.resolveVariable(var) != null) { > vm.setVariable(var, null); >- }*/ >+ } > pageContext.setAttribute(var, result, scope); > } > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49526
: 25665 |
25687