Skip to content

Commit d3dabe1

Browse files
committed
Moved NullComponent to utils package
1 parent db8925b commit d3dabe1

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎core/src/main/java/com/ocpsoft/pretty/faces/beans/ParameterValidator.java‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import javax.faces.FacesException;
2323
import javax.faces.application.FacesMessage;
2424
import javax.faces.component.UIComponent;
25-
import javax.faces.component.UIComponentBase;
2625
import javax.faces.context.FacesContext;
2726
import javax.faces.validator.Validator;
2827
import javax.faces.validator.ValidatorException;
@@ -39,6 +38,7 @@
3938
import com.ocpsoft.pretty.faces.config.mapping.UrlMapping;
4039
import com.ocpsoft.pretty.faces.url.URL;
4140
import com.ocpsoft.pretty.faces.util.FacesElUtils;
41+
import com.ocpsoft.pretty.faces.util.NullComponent;
4242

4343
/**
4444
* @author Lincoln Baxter, III <lincoln@ocpsoft.com>
@@ -237,19 +237,4 @@ private void handleValidationFailure(final FacesContext context, final FacesMess
237237
}
238238
}
239239

240-
/**
241-
* This component exists only to provide Path and Query Validators with a component for which they should not throw
242-
* {@link NullPointerException}s
243-
*
244-
* @author lb3
245-
*/
246-
public static class NullComponent extends UIComponentBase
247-
{
248-
@Override
249-
public String getFamily()
250-
{
251-
return "com.ocpsoft.pretty.NullComponent";
252-
}
253-
}
254-
255240
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.ocpsoft.pretty.faces.util;
2+
3+
import javax.faces.component.UIComponentBase;
4+
5+
/**
6+
* This component exists only to provide Path and Query Validators with a component for which they should not throw
7+
* {@link NullPointerException}s
8+
*
9+
* @author lb3
10+
*/
11+
public class NullComponent extends UIComponentBase
12+
{
13+
@Override
14+
public String getFamily()
15+
{
16+
return "com.ocpsoft.pretty.NullComponent";
17+
}
18+
}

0 commit comments

Comments
 (0)