You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/01/21 18:32:22 UTC

svn commit: r613947 - /myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java

Author: bommel
Date: Mon Jan 21 09:32:21 2008
New Revision: 613947

URL: http://svn.apache.org/viewvc?rev=613947&view=rev
Log:
revert revision 613466

Modified:
    myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java

Modified: myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java?rev=613947&r1=613946&r2=613947&view=diff
==============================================================================
--- myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java (original)
+++ myfaces/tobago/tags/tobago-1.0.14/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java Mon Jan 21 09:32:21 2008
@@ -237,7 +237,7 @@
     UIGraphic image = (UIGraphic) ComponentUtil.createComponent(
         facesContext, UIGraphic.COMPONENT_TYPE, RENDERER_TYPE_IMAGE);
     image.setRendered(true);
-    image.setId("image");
+    image.setId(facesContext.getViewRoot().createUniqueId());
     image.setValue("image/date.gif");
     image.getAttributes().put(ATTR_ALT, ""); //TODO: i18n
     StyleClasses.ensureStyleClasses(image).addFullQualifiedClass("tobago-input-picker"); // XXX not a standard name