[ 
http://issues.apache.org/jira/browse/MYFACES-125?page=comments#action_60589 ]
     
Mathias Broekelmann commented on MYFACES-125:
---------------------------------------------

call to makeAlias() and removeAlias() in method queueEvent(FacesEvent) should 
be removed to make nested components work during the decode phase:

Patch (including the previous patch):

Index: AliasBean.java
===================================================================
RCS file: 
/home/cvspublic/incubator-myfaces/src/components/org/apache/myfaces/custom/aliasbean/AliasBean.java,v
retrieving revision 1.7
diff -u -r1.7 AliasBean.java
--- AliasBean.java      27 Jan 2005 16:00:30 -0000      1.7
+++ AliasBean.java      10 Mar 2005 12:39:16 -0000
@@ -202,6 +202,13 @@
         super.processValidators(context);
         removeAlias(context);
     }
+    
+    public void processDecodes(FacesContext context) {
+      log.debug("processDecodes");
+      makeAlias(context);
+      super.processDecodes(context);
+      removeAlias(context);
+    }
 
     public void processUpdates(FacesContext context) {
         log.debug("processUpdates");
@@ -211,9 +218,9 @@
     }
 
     public void queueEvent(FacesEvent event) {
-        makeAlias();
+        //makeAlias();
         super.queueEvent(new FacesEventWrapper(event, this));
-        removeAlias();
+        //removeAlias();
     }
 
     public void broadcast(FacesEvent event) throws AbortProcessingException {


> processDecodes in AliasBean not implemented
> -------------------------------------------
>
>          Key: MYFACES-125
>          URL: http://issues.apache.org/jira/browse/MYFACES-125
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Mathias Broekelmann

>
> This bug prevents nested components which need the aliased value in the 
> decode phase to work right.
> I�ve a fix for that:
> Index: AliasBean.java
> ===================================================================
> RCS file: 
> /home/cvspublic/incubator-myfaces/src/components/org/apache/myfaces/custom/aliasbean/AliasBean.java,v
> retrieving revision 1.7
> diff -u -r1.7 AliasBean.java
> --- AliasBean.java    27 Jan 2005 16:00:30 -0000      1.7
> +++ AliasBean.java    10 Mar 2005 10:36:57 -0000
> @@ -202,6 +202,13 @@
>          super.processValidators(context);
>          removeAlias(context);
>      }
> +    
> +    public void processDecodes(FacesContext context) {
> +      log.debug("processDecodes");
> +      makeAlias(context);
> +      super.processDecodes(context);
> +      removeAlias(context);
> +    }
>  
>      public void processUpdates(FacesContext context) {
>          log.debug("processUpdates");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to