myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grantsm...@apache.org
Subject svn commit: r411304 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputHtml/InputHtmlRenderer.java
Date Fri, 02 Jun 2006 22:01:00 GMT
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);
         }
 



Mime
View raw message