You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/08/22 09:54:22 UTC
svn commit: r234449 -
/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java
Author: mmarinschek
Date: Mon Aug 22 00:54:18 2005
New Revision: 234449
URL: http://svn.apache.org/viewcvs?rev=234449&view=rev
Log:
final fix for MYFACES-118. Thanks to Mike Youngstrom for providing this patch.
Modified:
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java?rev=234449&r1=234448&r2=234449&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/HtmlCalendarRenderer.java Mon Aug 22 00:54:18 2005
@@ -143,10 +143,10 @@
inputText.setEnabledOnUserRole(inputCalendar.getEnabledOnUserRole());
inputText.setVisibleOnUserRole(inputCalendar.getVisibleOnUserRole());
- //This is where to components with the same id are in the tree,
+ //This is where two components with the same id are in the tree,
//so make sure that during the rendering the id is unique.
- inputCalendar.setId(facesContext.getViewRoot().createUniqueId());
+ inputCalendar.setId(inputCalendar.getId()+"tempId");
inputCalendar.getChildren().add(inputText);