myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mconc...@apache.org
Subject svn commit: r955231 - in /myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html: HtmlButtonRendererBase.java HtmlLinkRendererBase.java
Date Wed, 16 Jun 2010 13:58:04 GMT
Author: mconcini
Date: Wed Jun 16 13:58:03 2010
New Revision: 955231

URL: http://svn.apache.org/viewvc?rev=955231&view=rev
Log:
MYFACES-2755 - this.id undefined in jsf.ajax.request calls

Modified:
    myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java
    myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java

Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java?rev=955231&r1=955230&r2=955231&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java
(original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlButtonRendererBase.java
Wed Jun 16 13:58:03 2010
@@ -554,7 +554,7 @@ public class HtmlButtonRendererBase
         {
             onClick.append('}');
             onClick.append(';');
-            onClick.append("return (cf()==false)? false : oamSF();");
+            onClick.append("return (cf.apply(this, [])==false)? false : oamSF.apply(this,
[]); ");
         }  
 
         //The hidden field has only sense if isRenderClearJavascriptOnButton is

Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java?rev=955231&r1=955230&r2=955231&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java
(original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlLinkRendererBase.java
Wed Jun 16 13:58:03 2010
@@ -377,7 +377,7 @@ public abstract class HtmlLinkRendererBa
         {
             onClick.append('}');
             onClick.append(';');
-            onClick.append("return (cf()==false)? false : oamSF();");
+            onClick.append("return (cf.apply(this, [])==false)? false : oamSF.apply(this,
[]); ");
         }        
 
         writer.startElement(HTML.ANCHOR_ELEM, component);



Mime
View raw message