Author: nbelaevski
Date: 2008-08-30 11:28:43 -0400 (Sat, 30 Aug 2008)
New Revision: 10248
Modified:
trunk/ui/beanValidator/src/main/java/org/richfaces/taglib/BeanValidatorTag.java
Log:
BeanValidatorTag pretty-formatted
Modified: trunk/ui/beanValidator/src/main/java/org/richfaces/taglib/BeanValidatorTag.java
===================================================================
---
trunk/ui/beanValidator/src/main/java/org/richfaces/taglib/BeanValidatorTag.java 2008-08-30
10:55:43 UTC (rev 10247)
+++
trunk/ui/beanValidator/src/main/java/org/richfaces/taglib/BeanValidatorTag.java 2008-08-30
15:28:43 UTC (rev 10248)
@@ -12,46 +12,42 @@
public class BeanValidatorTag extends javax.faces.webapp.ValidatorELTag {
-
/**
*
*/
private static final long serialVersionUID = -5230299574915210593L;
// Fields
-
- /*
- * summary
- * Summary message for a validation errors.
- */
- private ValueExpression _summary;
- /**
- * Summary message for a validation errors.
- * Setter for summary
- * @param summary - new value
- */
- public void setSummary( ValueExpression __summary ){
- this._summary = __summary;
- }
-
-
-
- protected Validator createValidator() throws JspException
- {
- FacesBeanValidator validator = (FacesBeanValidator)
FacesContext.getCurrentInstance().getApplication().createValidator("org.richfaces.BeanValidator");
- _setProperties(validator);
- return validator;
- }
+ /*
+ * summary Summary message for a validation errors.
+ */
+ private ValueExpression _summary;
- // Support method to wire in properties
- private void _setProperties(FacesBeanValidator validator) throws JspException
- {
- if (_summary != null)
- {
- if (_summary instanceof ValueExpression)
- {
- validator.setSummary(_summary);
- }
- }
- }
+ /**
+ * Summary message for a validation errors. Setter for summary
+ *
+ * @param summary
+ * - new value
+ */
+ public void setSummary(ValueExpression __summary) {
+ this._summary = __summary;
+ }
+
+ protected Validator createValidator() throws JspException {
+ FacesBeanValidator validator = (FacesBeanValidator) FacesContext
+ .getCurrentInstance().getApplication().createValidator(
+ "org.richfaces.BeanValidator");
+ _setProperties(validator);
+ return validator;
+ }
+
+ // Support method to wire in properties
+ private void _setProperties(FacesBeanValidator validator)
+ throws JspException {
+ if (_summary != null) {
+ if (_summary instanceof ValueExpression) {
+ validator.setSummary(_summary);
+ }
+ }
+ }
}
Show replies by date