myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1587154 - in /myfaces/tobago/branches/tobago-3.0.x: tobago-example/tobago-example-test/src/main/webapp/test/sheet/ tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/
Date Mon, 14 Apr 2014 07:43:13 GMT
Author: lofwyr
Date: Mon Apr 14 07:43:12 2014
New Revision: 1587154

URL: http://svn.apache.org/r1587154
Log:
using omit attribute instead of onclick=comment

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-large.xhtml
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-large.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-large.xhtml?rev=1587154&r1=1587153&r2=1587154&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-large.xhtml
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-test/src/main/webapp/test/sheet/sheet-large.xhtml
Mon Apr 14 07:43:12 2014
@@ -49,11 +49,11 @@
         <tc:gridLayout columns="2*;*"/>
       </f:facet>
       <tx:in readonly="true" label="Select 1st row"/>
-      <tc:button label="Run" onclick="/* fixme: avoid submit */">
+      <tc:button label="Run" omit="true">
         <tc:dataAttribute name="clickrow" value="0"/>
       </tc:button>
       <tx:in readonly="true" label="Select 2nd row"/>
-      <tc:button label="Run" onclick="/* fixme: avoid submit */">
+      <tc:button label="Run" omit="true">
         <tc:dataAttribute name="clickrow" value="1"/>
       </tc:button>
     </tc:box>

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java?rev=1587154&r1=1587153&r2=1587154&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
Mon Apr 14 07:43:12 2014
@@ -1003,7 +1003,7 @@ public class SheetRenderer extends Layou
         facesContext, UIMenuCommand.COMPONENT_TYPE, RendererTypes.MENU_COMMAND, id);
     menuItem.setLabel(ResourceManagerUtils.getPropertyNotNull(facesContext, "tobago", label));
     menuItem.setMarkup(markup);
-    menuItem.setOnclick("/**/"); // XXX avoid submit
+    menuItem.setOmit(true);
     ComponentUtils.putDataAttributeWithPrefix(menuItem, DataAttributes.SHEET_ID, sheetId);
     menu.getChildren().add(menuItem);
   }



Mime
View raw message