You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pa...@apache.org on 2018/03/28 17:16:06 UTC

svn commit: r1827937 - /myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/

Author: paulnicolucci
Date: Wed Mar 28 17:16:05 2018
New Revision: 1827937

URL: http://svn.apache.org/viewvc?rev=1827937&view=rev
Log:
MYFACES-4212: onSelect/getSelect should not be implemented on some components

Added:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeProperty.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_SelectProperty.java
Removed:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeSelectProperties.java
Modified:
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlCommandButton.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputFile.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputSecret.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputText.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputTextarea.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java
    myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java

Added: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeProperty.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeProperty.java?rev=1827937&view=auto
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeProperty.java (added)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_ChangeProperty.java Wed Mar 28 17:16:05 2018
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.faces.component.html;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+interface _ChangeProperty
+{
+    /**
+     * HTML: Specifies a script to be invoked when the element is modified.
+     * 
+     */
+    @JSFProperty(clientEvent="change")
+    public abstract String getOnchange();
+
+}

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlCommandButton.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlCommandButton.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlCommandButton.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlCommandButton.java Wed Mar 28 17:16:05 2018
@@ -35,11 +35,10 @@ defaultRendererType = "javax.faces.Butto
 implementz = "javax.faces.component.behavior.ClientBehaviorHolder",
 defaultEventName = "action"
 )
-abstract class _HtmlCommandButton extends UICommand
-    implements _FocusBlurProperties, 
+abstract class _HtmlCommandButton extends UICommand implements _FocusBlurProperties, 
     _EventProperties, _StyleProperties, _UniversalProperties,
     _AccesskeyProperty, _TabindexProperty, _AltProperty, 
-    _ChangeSelectProperties, _DisabledReadonlyProperties,
+    _ChangeProperty, _SelectProperty, _DisabledReadonlyProperties,
     _LabelProperty, _RoleProperty
 {
 

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputFile.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputFile.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputFile.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputFile.java Wed Mar 28 17:16:05 2018
@@ -36,11 +36,11 @@ defaultRendererType = "javax.faces.File"
 implementz = "javax.faces.component.behavior.ClientBehaviorHolder",
 defaultEventName = "valueChange"
 )
-abstract class _HtmlInputFile extends UIInput
-    implements _AccesskeyProperty,
+abstract class _HtmlInputFile extends UIInput implements _AccesskeyProperty,
     _AltProperty, _UniversalProperties, _DisabledReadonlyProperties,
-    _FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-    _StyleProperties, _TabindexProperty, _LabelProperty, _RoleProperty
+    _FocusBlurProperties, _ChangeProperty, _SelectProperty,
+    _EventProperties, _StyleProperties, _TabindexProperty, _LabelProperty,
+    _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputSecret.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputSecret.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputSecret.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputSecret.java Wed Mar 28 17:16:05 2018
@@ -37,7 +37,7 @@ defaultEventName = "valueChange"
 )
 abstract class _HtmlInputSecret extends UIInput implements _AccesskeyProperty,
     _AltProperty, _UniversalProperties, _FocusBlurProperties, _EventProperties,
-    _StyleProperties, _TabindexProperty, _ChangeSelectProperties, 
+    _StyleProperties, _TabindexProperty, _ChangeProperty, _SelectProperty,
     _DisabledReadonlyProperties, _LabelProperty, _RoleProperty
 {
 

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputText.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputText.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputText.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputText.java Wed Mar 28 17:16:05 2018
@@ -35,11 +35,11 @@ defaultRendererType = "javax.faces.Text"
 implementz = "javax.faces.component.behavior.ClientBehaviorHolder",
 defaultEventName = "valueChange"
 )
-abstract class _HtmlInputText extends UIInput
-    implements _AccesskeyProperty,
+abstract class _HtmlInputText extends UIInput implements _AccesskeyProperty,
     _AltProperty, _UniversalProperties, _DisabledReadonlyProperties,
-    _FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-    _StyleProperties, _TabindexProperty, _LabelProperty, _RoleProperty
+    _FocusBlurProperties, _ChangeProperty, _SelectProperty, 
+    _EventProperties, _StyleProperties, _TabindexProperty, _LabelProperty, 
+    _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputTextarea.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputTextarea.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputTextarea.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlInputTextarea.java Wed Mar 28 17:16:05 2018
@@ -35,9 +35,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlInputTextarea extends UIInput implements _AccesskeyProperty,
-    _UniversalProperties, _FocusBlurProperties, _ChangeSelectProperties,
-    _EventProperties, _StyleProperties, _TabindexProperty, 
-    _DisabledReadonlyProperties, _LabelProperty, _RoleProperty
+    _UniversalProperties, _FocusBlurProperties, _ChangeProperty,
+    _SelectProperty, _EventProperties, _StyleProperties, 
+    _TabindexProperty, _DisabledReadonlyProperties, _LabelProperty,
+    _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectBooleanCheckbox.java Wed Mar 28 17:16:05 2018
@@ -41,9 +41,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectBooleanCheckbox extends UISelectBoolean implements
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _SelectProperty, 
+    _EventProperties, _StyleProperties, _TabindexProperty, _LabelProperty,
+    _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyCheckbox.java Wed Mar 28 17:16:05 2018
@@ -58,8 +58,8 @@ defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectManyCheckbox extends UISelectMany implements 
     _AccesskeyProperty, _UniversalProperties, _FocusBlurProperties,
-    _ChangeSelectProperties, _EventProperties, _StyleProperties,
-    _TabindexProperty, _DisabledReadonlyProperties, 
+    _ChangeProperty, _SelectProperty, _EventProperties,
+    _StyleProperties, _TabindexProperty, _DisabledReadonlyProperties, 
     _DisabledClassEnabledClassProperties, _LabelProperty, _RoleProperty
 {
 

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyListbox.java Wed Mar 28 17:16:05 2018
@@ -59,10 +59,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectManyListbox extends UISelectMany implements 
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
-_LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _EventProperties,
+    _StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
+    _LabelProperty, _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectManyMenu.java Wed Mar 28 17:16:05 2018
@@ -56,10 +56,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectManyMenu extends UISelectMany implements
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
-_LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _EventProperties,
+    _StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
+    _LabelProperty, _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneListbox.java Wed Mar 28 17:16:05 2018
@@ -57,10 +57,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectOneListbox extends UISelectOne implements
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
-_LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _EventProperties,
+    _StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
+    _LabelProperty, _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneMenu.java Wed Mar 28 17:16:05 2018
@@ -51,10 +51,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectOneMenu extends UISelectOne implements
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
-_LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _EventProperties,
+    _StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
+    _LabelProperty, _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Modified: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java?rev=1827937&r1=1827936&r2=1827937&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java (original)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_HtmlSelectOneRadio.java Wed Mar 28 17:16:05 2018
@@ -50,10 +50,10 @@ implementz = "javax.faces.component.beha
 defaultEventName = "valueChange"
 )
 abstract class _HtmlSelectOneRadio extends UISelectOne implements
-_AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
-_FocusBlurProperties, _ChangeSelectProperties, _EventProperties,
-_StyleProperties, _TabindexProperty, _DisabledClassEnabledClassProperties,
-_LabelProperty, _RoleProperty
+    _AccesskeyProperty, _UniversalProperties, _DisabledReadonlyProperties,
+    _FocusBlurProperties, _ChangeProperty, _SelectProperty,
+    _EventProperties, _StyleProperties, _TabindexProperty,
+    _DisabledClassEnabledClassProperties, _LabelProperty, _RoleProperty
 {
 
   static public final String COMPONENT_FAMILY =

Added: myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_SelectProperty.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_SelectProperty.java?rev=1827937&view=auto
==============================================================================
--- myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_SelectProperty.java (added)
+++ myfaces/core/branches/2.3.x/api/src/main/java/javax/faces/component/html/_SelectProperty.java Wed Mar 28 17:16:05 2018
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package javax.faces.component.html;
+
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
+
+interface _SelectProperty
+{
+    /**
+     * HTML: Specifies a script to be invoked when the element is selected.
+     * 
+     */
+    @JSFProperty(clientEvent="select")
+    public abstract String getOnselect();
+
+}