Author: nbelaevski
Date: 2010-12-16 12:34:36 -0500 (Thu, 16 Dec 2010)
New Revision: 20622
Modified:
trunk/core/api/src/main/java/org/richfaces/renderkit/util/CoreAjaxRendererUtils.java
Log:
https://issues.jboss.org/browse/RF-10011
Modified:
trunk/core/api/src/main/java/org/richfaces/renderkit/util/CoreAjaxRendererUtils.java
===================================================================
---
trunk/core/api/src/main/java/org/richfaces/renderkit/util/CoreAjaxRendererUtils.java 2010-12-16
16:53:49 UTC (rev 20621)
+++
trunk/core/api/src/main/java/org/richfaces/renderkit/util/CoreAjaxRendererUtils.java 2010-12-16
17:34:36 UTC (rev 20622)
@@ -280,14 +280,11 @@
if (component instanceof AjaxComponent) {
result = ((AjaxComponent) component).isLimitRender();
} else {
- try {
- result = ((Boolean)
component.getAttributes().get(LIMITRENDER_ATTR_NAME)).booleanValue();
- } catch (NullPointerException e) {
-
- // NullPointer - ignore ...
- } catch (ClassCastException e1) {
-
- // not Boolean - false ...
+ Object limitRenderObject =
component.getAttributes().get(LIMITRENDER_ATTR_NAME);
+ if (limitRenderObject instanceof Boolean) {
+ result = ((Boolean) limitRenderObject).booleanValue();
+ } else {
+ result = Boolean.valueOf(String.valueOf(limitRenderObject));
}
}