Author: nbelaevski
Date: 2007-11-16 10:15:43 -0500 (Fri, 16 Nov 2007)
New Revision: 4038
Modified:
trunk/sandbox/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java
Log:
minor optimization for componentControl
Modified:
trunk/sandbox/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java
===================================================================
---
trunk/sandbox/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java 2007-11-16
14:33:49 UTC (rev 4037)
+++
trunk/sandbox/ui/componentControl/src/main/java/org/richfaces/renderkit/ComponentControlRendererBase.java 2007-11-16
15:15:43 UTC (rev 4038)
@@ -24,7 +24,7 @@
"'. It may have only the following values: 'immediate',
'onload', 'onJScall'");
}
- if (operation==null || "".equals(operation.trim())) {
+ if (operation==null || operation.trim().length() == 0) {
throw new FacesException(
"The operation attribute of the controlComponent
(id='"+clientId+"') must be specified" );
}
Show replies by date