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:30:15 UTC

svn commit: r613946 - in /myfaces/tobago/branches/tobago-1.0.x: ./ core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java

Author: bommel
Date: Mon Jan 21 09:30:15 2008
New Revision: 613946

URL: http://svn.apache.org/viewvc?rev=613946&view=rev
Log:
Merged revisions 613939 via svnmerge from 
https://svn.apache.org/repos/asf/myfaces/tobago/trunk

........
  r613939 | bommel | 2008-01-21 18:14:54 +0100 (Mo, 21 Jan 2008) | 1 line
  
  (TOBAGO-596) Duplicate component Id exception with tc:date and tx:date with facelets
........

Modified:
    myfaces/tobago/branches/tobago-1.0.x/   (props changed)
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java

Propchange: myfaces/tobago/branches/tobago-1.0.x/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Jan 21 09:30:15 2008
@@ -1 +1 @@
-/myfaces/tobago/trunk:1-603371,609568-609629,612250-612251,612282,612518,613455
+/myfaces/tobago/trunk:1-603371,609568-609629,612250-612251,612282,612518,613455,613939

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java?rev=613946&r1=613945&r2=613946&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java Mon Jan 21 09:30:15 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