Author: dsvyatobatsko
Date: 2008-07-08 08:00:32 -0400 (Tue, 08 Jul 2008)
New Revision: 9448
Modified:
trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java
Log:
event property added
Modified: trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml
===================================================================
--- trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-07-08
11:59:25 UTC (rev 9447)
+++ trunk/sandbox/ui/beanValidator/src/main/config/component/beanValidator.xml 2008-07-08
12:00:32 UTC (rev 9448)
@@ -27,18 +27,15 @@
</taghandler>
-->
&ui_component_attributes;
- <!--
- <property>
+ <property>
<name>event</name>
<classname>java.lang.String</classname>
<description>
- Name of JavaScript event property ( onclick, onchange,
- etc.) of parent component by which validation will be
- triggered
+ Name of JavaScript event property ( onclick, onchange, etc.) of parent component by
+ which validation will be triggered
</description>
<defaultvalue><![CDATA["onblur"]]></defaultvalue>
- </property>
- -->
+ </property>
</component>
<validator generate="false">
<id>org.richfaces.BeanValidator</id>
Modified:
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java
===================================================================
---
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-08
11:59:25 UTC (rev 9447)
+++
trunk/sandbox/ui/beanValidator/src/main/java/org/richfaces/component/UIBeanValidator.java 2008-07-08
12:00:32 UTC (rev 9448)
@@ -9,7 +9,6 @@
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
-import javax.faces.context.FacesContextFactory;
import javax.faces.validator.Validator;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
@@ -27,10 +26,10 @@
public static final String COMPONENT_FAMILY =
"org.richfaces.ui.BeanValidator";
- public String getEvent() {
- return "onblur";
- }
+ public abstract String getEvent();
+ public abstract void setEvent(String event);
+
public void setParent(UIComponent parent) {
super.setParent(parent);
Show replies by date