myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r951805 - in /myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext: HtmlGroupRenderer.java HtmlTableRenderer.java
Date Sun, 06 Jun 2010 02:17:47 GMT
Author: lu4242
Date: Sun Jun  6 02:17:47 2010
New Revision: 951805

URL: http://svn.apache.org/viewvc?rev=951805&view=rev
Log:
TOMAHAWK-1474 Behavior support for components that contains event aware properties in jsf
2.0 module

Modified:
    myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRenderer.java
    myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java

Modified: myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRenderer.java?rev=951805&r1=951804&r2=951805&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlGroupRenderer.java
Sun Jun  6 02:17:47 2010
@@ -74,11 +74,6 @@ public class HtmlGroupRenderer
             }
         }
 
-        if (component instanceof ClientBehaviorHolder)
-        {
-            behaviors = ((ClientBehaviorHolder) component).getClientBehaviors();
-        }
-        
         if (behaviors != null && !behaviors.isEmpty())
         {
             //Render element and id to make javascript work

Modified: myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java?rev=951805&r1=951804&r2=951805&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core20/src/main/java/org/apache/myfaces/renderkit/html/ext/HtmlTableRenderer.java
Sun Jun  6 02:17:47 2010
@@ -564,26 +564,26 @@ public class HtmlTableRenderer extends H
         
         Map<String, List<ClientBehavior>> clientBehaviors = ((ClientBehaviorHolder)
uiData).getClientBehaviors();
 
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_CLICK, ROW_ONCLICK_ATTR, HTML.ONCLICK_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_DBLCLICK, ROW_ONDBLCLICK_ATTR, HTML.ONDBLCLICK_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_KEYDOWN, ROW_ONKEYDOWN_ATTR, HTML.ONKEYDOWN_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_KEYPRESS, ROW_ONKEYPRESS_ATTR, HTML.ONKEYPRESS_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_KEYUP, ROW_ONKEYUP_ATTR, HTML.ONKEYUP_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_MOUSEDOWN, ROW_ONMOUSEDOWN_ATTR, HTML.ONMOUSEDOWN_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_MOUSEMOVE, ROW_ONMOUSEMOVE_ATTR, HTML.ONMOUSEMOVE_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_MOUSEOUT, ROW_ONMOUSEOUT_ATTR, HTML.ONMOUSEOUT_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_MOUSEOVER, ROW_ONMOUSEOVER_ATTR, HTML.ONMOUSEOVER_ATTR);
-        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, uiData, clientBehaviors,
-                ROW_MOUSEUP, ROW_ONMOUSEUP_ATTR, HTML.ONMOUSEUP_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONCLICK_ATTR,
uiData,
+                ROW_CLICK, clientBehaviors, HTML.ONCLICK_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONDBLCLICK_ATTR,
uiData,
+                ROW_DBLCLICK, clientBehaviors, HTML.ONDBLCLICK_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONKEYDOWN_ATTR,
uiData,
+                ROW_KEYDOWN, clientBehaviors, HTML.ONKEYDOWN_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONKEYPRESS_ATTR,
uiData,
+                ROW_KEYPRESS, clientBehaviors, HTML.ONKEYPRESS_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONKEYUP_ATTR,
uiData,
+                ROW_KEYUP, clientBehaviors, HTML.ONKEYUP_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONMOUSEDOWN_ATTR,
uiData,
+                ROW_MOUSEDOWN, clientBehaviors, HTML.ONMOUSEDOWN_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONMOUSEMOVE_ATTR,
uiData,
+                ROW_MOUSEMOVE, clientBehaviors, HTML.ONMOUSEMOVE_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONMOUSEOUT_ATTR,
uiData,
+                ROW_MOUSEOUT, clientBehaviors, HTML.ONMOUSEOUT_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONMOUSEOVER_ATTR,
uiData,
+                ROW_MOUSEOVER, clientBehaviors, HTML.ONMOUSEOVER_ATTR);
+        HtmlRendererUtils.renderBehaviorizedAttribute(facesContext, writer, ROW_ONMOUSEUP_ATTR,
uiData,
+                ROW_MOUSEUP, clientBehaviors, HTML.ONMOUSEUP_ATTR);
         
         /*
         renderRowAttribute(writer, HTML.ONCLICK_ATTR, table.getRowOnClick());



Mime
View raw message