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

svn commit: r718003 - in /myfaces/tobago/branches/tobago-1.0.x: core/src/main/java/org/apache/myfaces/tobago/renderkit/ theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/

Author: bommel
Date: Sun Nov 16 03:03:16 2008
New Revision: 718003

URL: http://svn.apache.org/viewvc?rev=718003&view=rev
Log:
(TOBAGO-724) Transition on command facet

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/LayoutableRendererBase.java
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/LayoutableRendererBase.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/LayoutableRendererBase.java?rev=718003&r1=718002&r2=718003&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/LayoutableRendererBase.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/LayoutableRendererBase.java Sun Nov 16 03:03:16 2008
@@ -191,7 +191,7 @@
       UIComponent facetComponent = facetEntry.getValue();
       String facetAction = (String) facetComponent.getAttributes().get(ATTR_ONCLICK);
       if (facetAction == null) {
-        facetAction = "Tobago.submitAction2(this, '" + facetComponent.getClientId(facesContext) + "', null, null)";
+        facetAction = "Tobago.submitAction2(this, '" + facetComponent.getClientId(facesContext) + "')";
       }
       String script =
           "var element = Tobago.element(\"" + clientId + "\");\n"

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=718003&r1=718002&r2=718003&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Sun Nov 16 03:03:16 2008
@@ -476,7 +476,7 @@
     * Submitting the page with specified actionId.
     */
   submitAction2: function(source, actionId, transition, target) {
-    if (transition === undefined) {
+    if (transition === undefined || transition == null) {
       transition = true;
     }