You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/09/17 13:18:37 UTC

svn commit: r1703577 - in /myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp: WEB-INF/tobago-config.xml addressbook/editor.xhtml addressbook/list.xhtml

Author: lofwyr
Date: Thu Sep 17 11:18:36 2015
New Revision: 1703577

URL: http://svn.apache.org/r1703577
Log:
TOBAGO-1492: Possibility to add a CSS class to a component
- refactor demo from first impl.

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/tobago-config.xml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/editor.xhtml
    myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/list.xhtml

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/tobago-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/tobago-config.xml?rev=1703577&r1=1703576&r2=1703577&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/tobago-config.xml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/WEB-INF/tobago-config.xml Thu Sep 17 11:18:36 2015
@@ -24,7 +24,8 @@
     version="2.0">
 
   <theme-config>
-    <default-theme>speyside</default-theme>
+    <default-theme>standard</default-theme>
+    <supported-theme>speyside</supported-theme>
     <supported-theme>scarborough</supported-theme>
     <supported-theme>richmond</supported-theme>
     <supported-theme>charlotteville</supported-theme>

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/editor.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/editor.xhtml?rev=1703577&r1=1703576&r2=1703577&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/editor.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/editor.xhtml Thu Sep 17 11:18:36 2015
@@ -31,8 +31,10 @@
 
 
     <tc:toolBar iconSize="big"> <!-- XXX merge with the other toolbar on list.xhtml !!! -->
-      <tc:button tip="Logout" action="#{controller.logout}" immediate="true" css="btn-danger"
-                 image="image/org/tango-project/tango-icon-theme/16x16/actions/system-log-out.png"/>
+      <tc:button tip="Logout" action="#{controller.logout}" immediate="true"
+                 image="image/org/tango-project/tango-icon-theme/16x16/actions/system-log-out.png">
+        <tc:style customClass="btn-danger"/>
+      </tc:button>
     </tc:toolBar>
 
     <tc:box label="#{bundle.editorBoxTitle}">

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/list.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/list.xhtml?rev=1703577&r1=1703576&r2=1703577&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/list.xhtml (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-example/tobago-example-addressbook/src/main/webapp/addressbook/list.xhtml Thu Sep 17 11:18:36 2015
@@ -35,11 +35,12 @@
                  image="image/org/tango-project/tango-icon-theme/16x16/actions/contact-new.png"/>
       <tc:button label="#{bundle.listEdit}" action="#{controller.editAddress}"
                          image="image/org/tango-project/tango-icon-theme/16x16/apps/accessories-text-editor.png"/>
-      <tc:button label="#{bundle.listDelete}" action="#{controller.deleteAddresses}" css="btn-danger"
+      <tc:button label="#{bundle.listDelete}" action="#{controller.deleteAddresses}"
                          image="image/org/tango-project/tango-icon-theme/16x16/places/user-trash.png">
         <f:facet name="confirmation">
           <tc:out value="#{bundle.listDeleteConfirmation}"/>
         </f:facet>
+        <tc:style customClass="btn-danger"/>
       </tc:button>
       <tc:button label="#{bundle.toolbarAbout}"
                  image="image/org/tango-project/tango-icon-theme/16x16/apps/help-browser.png">
@@ -51,8 +52,9 @@
       <tc:in value="#{controller.searchCriterion}" placeholder="#{bundle.listFilter}" tip="#{bundle.listFilter}"/>
       <tc:button action="#{controller.search}" label="#{bundle.listSearch}"
                  defaultCommand="true"/>
-      <tc:button tip="Logout" action="#{controller.logout}" immediate="true" css="btn-danger"
+      <tc:button tip="Logout" action="#{controller.logout}" immediate="true"
                       image="image/org/tango-project/tango-icon-theme/16x16/actions/system-log-out.png"/>
+      <tc:style customClass="btn-danger"/>
     </tc:toolBar>
 
     <tc:box label="#{bundle.listBoxTitle}">