myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1746436 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main: java/org/apache/myfaces/tobago/example/demo/bestpractice/ webapp/content/20-component/040-command/21-buttons-customizer/ webapp/content/20-component/040-comman...
Date Wed, 01 Jun 2016 11:24:10 GMT
Author: lofwyr
Date: Wed Jun  1 11:24:10 2016
New Revision: 1746436

URL: http://svn.apache.org/viewvc?rev=1746436&view=rev
Log:
TOBAGO-1544

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/
      - copied from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/buttons-customizer.xhtml
      - copied, changed from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/tool-bar-customizer.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-delete.xhtml
      - copied, changed from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-delete.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-edit.xhtml
      - copied, changed from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-edit.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-new.xhtml
      - copied, changed from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-new.xhtml
Removed:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/tool-bar-customizer.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-tool-bar-item-delete.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-tool-bar-item-edit.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-tool-bar-item-new.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/
Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/ToolBarCustomizer.java

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/ToolBarCustomizer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/ToolBarCustomizer.java?rev=1746436&r1=1746435&r2=1746436&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/ToolBarCustomizer.java
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/bestpractice/ToolBarCustomizer.java
Wed Jun  1 11:24:10 2016
@@ -83,7 +83,7 @@ public class ToolBarCustomizer implement
 
     private Item(final String label) {
       this.label = label;
-      this.name = "x-tool-bar-item-" + label.toLowerCase(Locale.ENGLISH) + ".xhtml";
+      this.name = "x-buttons-item-" + label.toLowerCase(Locale.ENGLISH) + ".xhtml";
     }
 
     public String getLabel() {

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/buttons-customizer.xhtml
(from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/tool-bar-customizer.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/buttons-customizer.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/buttons-customizer.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/tool-bar-customizer.xhtml&r1=1746413&r2=1746436&rev=1746436&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/tool-bar-customizer.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/buttons-customizer.xhtml
Wed Jun  1 11:24:10 2016
@@ -23,53 +23,49 @@
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:c="http://java.sun.com/jsp/jstl/core">
-  <tc:box label="Customizable Tool Bar">
+  <tc:box label="Customizable Buttons">
     <f:facet name="layout">
       <tc:gridLayout rows="25px;auto;100px;auto;*"/>
     </f:facet>
 
     <tc:out value="This page shows a flexible possiblility, but for most cases there are
-    much simpler solutions." />
+    much simpler solutions."/>
 
-    <tc:toolBar>
+    <tc:buttons id="buttons">
       <c:forEach items="#{customizer.list}" var="item">
         <c:if test="#{item.visible}">
           <ui:include src="#{item.name}"/>
         </c:if>
       </c:forEach>
-    </tc:toolBar>
+    </tc:buttons>
 
-    <tc:sheet var="item" value="#{customizer.list}" columns="*;*;*;*">
+    <tc:sheet var="item" value="#{customizer.list}" columns="*;*;*;*" id="sheet">
       <tc:column label="Item Name">
         <tc:out value="#{item.label}"/>
       </tc:column>
       <tc:column label="Visible">
-        <tc:selectBooleanCheckbox value="#{item.visible}"/>
+        <tc:selectBooleanCheckbox value="#{item.visible}">
+          <f:ajax render=":::buttons :::sheet"/>
+        </tc:selectBooleanCheckbox>
       </tc:column>
       <tc:column>
         <tc:link actionListener="#{customizer.itemUp}" label="Up">
           <f:param value="#{item}" name="item"/>
+          <f:ajax render=":::buttons :::sheet"/>
         </tc:link>
       </tc:column>
       <tc:column>
         <tc:link actionListener="#{customizer.itemDown}" label="Down">
           <f:param value="#{item}" name="item"/>
+          <f:ajax render=":::buttons :::sheet"/>
         </tc:link>
       </tc:column>
     </tc:sheet>
 
-    <tc:panel>
-      <f:facet name="layout">
-        <tc:gridLayout columns="*;auto;auto"/>
-      </f:facet>
+    <tc:button label="Reset List" action="#{customizer.resetList}" image="fa-refresh"/>
 
-      <tc:panel/>
-      <tc:button label="Reset List" action="#{customizer.resetList}"/>
-      <tc:button label="Update"/>
-    </tc:panel>
-
-    <tc:out value="The data of the model can also be loaded directly from the webapp directory.
-       So we can define an Item for each facelet matching best-practice/tool-bar-item-*.xhtml.
+    <tc:out value="The data of the model may also be loaded directly from the webapp directory.
+       So we can define an Item for each facelet matching .../x-buttons-item-*.xhtml.
        With this, we can create applications with pluggable UI. And we don't have to fight
with bindings and
        creating components in Java code."/>
   </tc:box>

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-delete.xhtml
(from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-delete.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-delete.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-delete.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-delete.xhtml&r1=1746413&r2=1746436&rev=1746436&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-delete.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-delete.xhtml
Wed Jun  1 11:24:10 2016
@@ -17,4 +17,4 @@
  * limitations under the License.
 -->
 
-<tc:toolBarCommand xmlns:tc="http://myfaces.apache.org/tobago/component" label="Delete"/>
+<tc:button xmlns:tc="http://myfaces.apache.org/tobago/component" label="Delete" image="fa-remove"/>

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-edit.xhtml
(from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-edit.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-edit.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-edit.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-edit.xhtml&r1=1746413&r2=1746436&rev=1746436&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-edit.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-edit.xhtml
Wed Jun  1 11:24:10 2016
@@ -17,4 +17,4 @@
  * limitations under the License.
 -->
 
-<tc:toolBarCommand xmlns:tc="http://myfaces.apache.org/tobago/component" label="Edit"/>
+<tc:button xmlns:tc="http://myfaces.apache.org/tobago/component" label="Edit" image="fa-edit"/>

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-new.xhtml
(from r1746413, myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-new.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-new.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-new.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-new.xhtml&r1=1746413&r2=1746436&rev=1746436&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-toolBar-customizer/x-tool-bar-item-new.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/040-command/21-buttons-customizer/x-buttons-item-new.xhtml
Wed Jun  1 11:24:10 2016
@@ -17,4 +17,4 @@
  * limitations under the License.
 -->
 
-<tc:toolBarCommand xmlns:tc="http://myfaces.apache.org/tobago/component" label="New"/>
+<tc:button xmlns:tc="http://myfaces.apache.org/tobago/component" label="New" image="fa-plus"/>



Mime
View raw message