[richfaces-svn-commits] JBoss Rich Faces SVN: r13979 - trunk/ui/core/src/main/java/org/ajax4jsf/renderkit.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Apr 30 13:29:39 EDT 2009


Author: nbelaevski
Date: 2009-04-30 13:29:38 -0400 (Thu, 30 Apr 2009)
New Revision: 13979

Modified:
   trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/AjaxFunctionRendererBase.java
Log:
https://jira.jboss.org/jira/browse/RF-6938

Modified: trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/AjaxFunctionRendererBase.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/AjaxFunctionRendererBase.java	2009-04-30 17:28:14 UTC (rev 13978)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/AjaxFunctionRendererBase.java	2009-04-30 17:29:38 UTC (rev 13979)
@@ -53,8 +53,8 @@
 
 	public String getFunction(FacesContext context, UIAjaxFunction component) {
 		String functionName = component.getName();
-		if (functionName == null || functionName.length() == 0) {
-			throw new FacesException("Value of 'name' attribute of a4j:jsFunction component is empty or null!");
+		if (functionName == null) {
+			throw new FacesException("Value of 'name' attribute of a4j:jsFunction component is null!");
 		}
 		
 		StringBuffer script = new StringBuffer(functionName).append("=");




More information about the richfaces-svn-commits mailing list