Author: nbelaevski
Date: 2009-03-31 18:56:39 -0400 (Tue, 31 Mar 2009)
New Revision: 13330
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java
Log:
https://jira.jboss.org/jira/browse/RF-6155
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java 2009-03-31
21:03:36 UTC (rev 13329)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/component/UIColumn.java 2009-03-31
22:56:39 UTC (rev 13330)
@@ -199,9 +199,18 @@
@Override
public void processDecodes(FacesContext context) {
+ if (context == null) {
+ throw new NullPointerException();
+ }
+
+ if (!isRendered()) {
+ return;
+ }
+
for (UIComponent component : getChildren()) {
component.processDecodes(context);
}
+
for (UIComponent component : getFacets().values()) {
if (isAjaxComponent(component)) {
component.processDecodes(context);
@@ -212,9 +221,18 @@
@Override
public void processValidators(FacesContext context) {
+ if (context == null) {
+ throw new NullPointerException();
+ }
+
+ if (!isRendered()) {
+ return;
+ }
+
for (UIComponent component : getChildren()) {
component.processValidators(context);
}
+
for (UIComponent component : getFacets().values()) {
if (isAjaxComponent(component)) {
component.processValidators(context);
@@ -224,9 +242,18 @@
@Override
public void processUpdates(FacesContext context) {
+ if (context == null) {
+ throw new NullPointerException();
+ }
+
+ if (!isRendered()) {
+ return;
+ }
+
for (UIComponent component : getChildren()) {
component.processUpdates(context);
}
+
for (UIComponent component : getFacets().values()) {
if (isAjaxComponent(component)) {
component.processUpdates(context);