myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkien...@apache.org
Subject svn commit: r523812 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java
Date Thu, 29 Mar 2007 19:38:38 GMT
Author: mkienenb
Date: Thu Mar 29 12:38:37 2007
New Revision: 523812

URL: http://svn.apache.org/viewvc?view=rev&rev=523812
Log:
Fix for TOMAHAWK-476 - Support for HtmlInputDate in HtmlFocus
Thanks to Rogério Pereira Araújo.
Required refactoring of day subcomponent clientid builder into a static method, which is probably
a good idea anyway.


Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java?view=diff&rev=523812&r1=523811&r2=523812
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocusRenderer.java
Thu Mar 29 12:38:37 2007
@@ -28,6 +28,8 @@
 import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
 import org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.HTML;
+import org.apache.myfaces.custom.date.HtmlDateRenderer;
+import org.apache.myfaces.custom.date.HtmlInputDate;
 import org.apache.myfaces.custom.dojo.DojoUtils;
 import org.apache.myfaces.custom.dojo.DojoConfig;
 
@@ -70,7 +72,10 @@
 			}
 
 			String clientId = targetComponent.getClientId(facesContext);
-
+            if(targetComponent instanceof HtmlInputDate)
+            {
+                clientId = HtmlDateRenderer.getClientIdForDaySubcomponent(clientId);
+            }
             ResponseWriter writer = facesContext.getResponseWriter();
 
             writer.startElement(HTML.SCRIPT_ELEM, uiComponent);



Mime
View raw message