You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gr...@apache.org on 2006/06/03 00:01:00 UTC
svn commit: r411304 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
Author: grantsmith
Date: Fri Jun 2 15:01:00 2006
New Revision: 411304
URL: http://svn.apache.org/viewvc?rev=411304&view=rev
Log:
TOMAHAWK-450: patch applied
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java?rev=411304&r1=411303&r2=411304&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java Fri Jun 2 15:01:00 2006
@@ -231,9 +231,13 @@
String formId;
{
UIComponent tmpComponent = editor.getParent();
- while(!(tmpComponent instanceof UIForm) ){
+ while((tmpComponent != null) && !(tmpComponent instanceof UIForm) ){
tmpComponent = tmpComponent.getParent();
}
+ if (tmpComponent == null) {
+ log.warn("The inputHtml component must be within a form, giving up!");
+ return;
+ }
formId = tmpComponent.getClientId(context);
}