myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1759851 - in /myfaces/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/ tobago-core/src/main/java/org/apache/myfaces/tobago/util/ tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-f...
Date Thu, 08 Sep 2016 15:32:21 GMT
Author: lofwyr
Date: Thu Sep  8 15:32:20 2016
New Revision: 1759851

URL: http://svn.apache.org/viewvc?rev=1759851&view=rev
Log:
TOBAGO-1568: Working on multi-form behavior
TOBAGO-1569: AJAX should be independent from Multi-Form concept	
TOBAGO-1524: Use standard AJAX mechanism
* clean up: remove unused code

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIInput.java
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIInput.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIInput.java?rev=1759851&r1=1759850&r2=1759851&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIInput.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUIInput.java
Thu Sep  8 15:32:20 2016
@@ -48,15 +48,6 @@ public abstract class AbstractUIInput ex
     return EVENT_NAMES;
   }
 
-
-  // TODO can this removed?
-  @Override
-  public void updateModel(final FacesContext facesContext) {
-    if (ComponentUtils.mayUpdateModel(this)) {
-      super.updateModel(facesContext);
-    }
-  }
-
   public abstract Integer getTabIndex();
 
   public abstract boolean isFocus();

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java?rev=1759851&r1=1759850&r2=1759851&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
Thu Sep  8 15:32:20 2016
@@ -420,16 +420,6 @@ public final class ComponentUtils {
         || getBooleanAttribute(component, Attributes.readonly);
   }
 
-  public static boolean mayValidate(final UIComponent component) {
-    return !isOutputOnly(component)
-        && (FacesContext.getCurrentInstance().getPartialViewContext().isAjaxRequest()
-        || ComponentUtils.isInActiveForm(component));
-  }
-
-  public static boolean mayUpdateModel(final UIComponent component) {
-    return mayValidate(component);
-  }
-
   public static Object getAttribute(final UIComponent component, final Attributes name) {
     return component.getAttributes().get(name.getName());
   }

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml?rev=1759851&r1=1759850&r2=1759851&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-test/5000-form/sheet-in-form.xhtml
Thu Sep  8 15:32:20 2016
@@ -46,6 +46,9 @@
             <tc:button label="AJAX (self) #0">
               <f:ajax />
             </tc:button>
+            <tc:button label="AJAX (form) #0">
+              <f:ajax render=":::form" execute=":::form"/>
+            </tc:button>
             <tc:button label="AJAX (panel) #0">
               <f:ajax render="::::panel" execute="::::panel"/>
             </tc:button>
@@ -61,6 +64,9 @@
         <tc:button label="AJAX (self) #1">
           <f:ajax />
         </tc:button>
+        <tc:button label="AJAX (form) #1">
+          <f:ajax render=":::form" execute=":::form"/>
+        </tc:button>
         <tc:button label="AJAX (panel) #1">
           <f:ajax render=":::panel" execute=":::panel"/>
         </tc:button>
@@ -74,6 +80,9 @@
     <tc:button label="AJAX (self) #2">
       <f:ajax />
     </tc:button>
+    <tc:button label="AJAX (form) #2">
+      <f:ajax render="::form" execute="::form"/>
+    </tc:button>
     <tc:button label="AJAX (panel) #2">
       <f:ajax render="::panel" execute="::panel"/>
     </tc:button>



Mime
View raw message