myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1750991 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept: 23-transition/transition.xhtml 23-transition/x-transition-after-sleep.xhtml 24-non-faces-response/non-faces-response.xhtml
Date Fri, 01 Jul 2016 17:58:22 GMT
Author: lofwyr
Date: Fri Jul  1 17:58:22 2016
New Revision: 1750991

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

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/transition.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/x-transition-after-sleep.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/24-non-faces-response/non-faces-response.xhtml

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/transition.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/transition.xhtml?rev=1750991&r1=1750990&r2=1750991&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/transition.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/transition.xhtml
Fri Jul  1 17:58:22 2016
@@ -19,8 +19,8 @@
 
 <ui:composition template="/main.xhtml"
                 xmlns:tc="http://myfaces.apache.org/tobago/component"
-                xmlns:ui="http://java.sun.com/jsf/facelets"
->
+                xmlns:ui="http://java.sun.com/jsf/facelets">
+
   <ui:param name="title" value="#{overviewBundle.transition}"/>
   <p>For command components like a link or a button, the <code>transition</code>
attribute is available.
     It shows a loading animation if the site don't respond in a certain amount of time.
@@ -48,16 +48,16 @@ action="\#{transitionController.sleep5sA
     <tc:popup id="popup">
       <tc:box label="Info">
         <p>Button pressed</p>
-        <tc:button label="Close">
-          <tc:attribute name="popupClose" value="immediate"/>
+        <tc:button label="Close" omit="true">
+          <tc:operation name="hide" for="popup"/>
         </tc:button>
       </tc:box>
     </tc:popup>
     <tc:button label="Open Popup (transition ON)" action="#{transitionController.sleep5s}">
-      <tc:popupReference for="popup"/>
+      <tc:operation name="show" for="popup"/>
     </tc:button>
     <tc:button label="Open Popup (transition OFF)" action="#{transitionController.sleep5s}"
transition="false">
-      <tc:popupReference for="popup"/>
+      <tc:operation name="show" for="popup"/>
     </tc:button>
   </tc:section>
 </ui:composition>

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/x-transition-after-sleep.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/x-transition-after-sleep.xhtml?rev=1750991&r1=1750990&r2=1750991&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/x-transition-after-sleep.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/23-transition/x-transition-after-sleep.xhtml
Fri Jul  1 17:58:22 2016
@@ -27,7 +27,7 @@
       <tc:gridLayout rows="auto"/>
     </f:facet>
 
-    <tc:button label="Back" action="best-practice/transition"/>
+    <tc:button label="Back" action="/content/30-concept/23-transition/transition.xhtml"/>
 
   </tc:panel>
 </ui:composition>

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/24-non-faces-response/non-faces-response.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/24-non-faces-response/non-faces-response.xhtml?rev=1750991&r1=1750990&r2=1750991&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/24-non-faces-response/non-faces-response.xhtml
(original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/24-non-faces-response/non-faces-response.xhtml
Fri Jul  1 17:58:22 2016
@@ -23,15 +23,27 @@
                 xmlns:f="http://java.sun.com/jsf/core">
   <ui:param name="title" value="Non Faces Response (e. g. a download link)"/>
 
-  <tc:panel>
-    <f:facet name="layout">
-      <tc:gridLayout rows="35px;35px" columns="*;100px"/>
-    </f:facet>
+  <tc:segmentLayout large="10;2">
+
+    <tc:out value="A faces request to a non-faces-response. Inside of the Browser." id="o"/>
+    <tc:button action="#{bestPracticeController.viewPdfInBrowser}" label="View PDF"/>
 
-    <tc:out value="A faces request to a non-faces-response. Inside of the Browser."/>
-    <tc:button action="#{bestPracticeController.viewPdfInBrowser}" label="View Pdf"/>
     <tc:out value="A faces request to a non-faces-response. Outside of the Browser."/>
-    <tc:button action="#{bestPracticeController.viewPdfOutsideOfBrowser}" label="View
Pdf" transition="false"/>
+    <tc:button action="#{bestPracticeController.viewPdfOutsideOfBrowser}" label="View
PDF" transition="false"/>
+  </tc:segmentLayout>
+
+  Problems:
+  <ul>
+    <li>
+      Is seems there are problems with the first example in Firefox, if it is configured
to
+      NOT view PDF inside the browser.
+    </li>
+    <li>
+      BUG: Currently after a download the next AJAX is broken:
+      <tc:button label="test">
+        <f:ajax render="o" execute="o"/>
+      </tc:button>
+    </li>
+  </ul>
 
-  </tc:panel>
 </ui:composition>



Mime
View raw message