You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/08/08 18:25:14 UTC

svn commit: r563929 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java

Author: cagatay
Date: Wed Aug  8 09:25:08 2007
New Revision: 563929

URL: http://svn.apache.org/viewvc?view=rev&rev=563929
Log:
Fixed TOMAHAWK-1074, affectedComponentId should be the client id of the input field instead of the component id

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java?view=diff&rev=563929&r1=563928&r2=563929
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggestajax/inputsuggestajax/InputSuggestAjaxRenderer.java Wed Aug  8 09:25:08 2007
@@ -124,7 +124,7 @@
         }
         out.endElement(HTML.DIV_ELEM);
 
-		String textInputId = inputSuggestAjax.getId();
+        String textInputId = inputSuggestAjax.getClientId(context);
 		if (label != null)
 		{
 			// whe have a label method and thus a hidden input field holding the real value
@@ -139,7 +139,6 @@
 				// fake a submitted value so we have it rendered
 				inputSuggestAjax.setSubmittedValue(label);
 
-				textInputId = inputSuggestAjax.getClientId(context);
 				super.encodeEnd(context, inputSuggestAjax);
 			}
 			finally