You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2023/01/13 13:56:00 UTC

[myfaces-tobago] branch main updated: feat(demo): messageLayout

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/main by this push:
     new 30779ba1dc feat(demo): messageLayout
30779ba1dc is described below

commit 30779ba1dca45cbf9b62452091f43daee859d824
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Jan 13 12:21:15 2023 +0100

    feat(demo): messageLayout
    
    * make tc:file required; validator is executed if file selected
    * add tc:range/tc:stars example
---
 .../4900-messageLayout/messageLayout.xhtml         | 24 ++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4900-messageLayout/messageLayout.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4900-messageLayout/messageLayout.xhtml
index 2218c4b972..de01af9937 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4900-messageLayout/messageLayout.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4900-messageLayout/messageLayout.xhtml
@@ -57,12 +57,16 @@
       </tc:selectManyListbox>
     </tc:segmentLayout>
     <tc:segmentLayout medium="6seg">
-      <tc:file id="fatalFile" validator="#{severityController.addFatal}"/>
+      <tc:file id="fatalFile" validator="#{severityController.addFatal}" required="true"/>
       <tc:selectManyShuttle id="fatalShuttle" validator="#{severityController.addFatal}">
         <tc:selectItem itemValue="Entry One"/>
         <tc:selectItem itemValue="Entry Two"/>
       </tc:selectManyShuttle>
     </tc:segmentLayout>
+    <tc:segmentLayout medium="6seg">
+      <tc:range id="fatalRange" validator="#{severityController.addFatal}"/>
+      <tc:stars id="fatalStars" validator="#{severityController.addFatal}"/>
+    </tc:segmentLayout>
   </tc:section>
 
   <tc:section label="Error">
@@ -98,12 +102,16 @@
       </tc:selectManyListbox>
     </tc:segmentLayout>
     <tc:segmentLayout medium="6seg">
-      <tc:file id="errorFile" validator="#{severityController.addError}"/>
+      <tc:file id="errorFile" validator="#{severityController.addError}" required="true"/>
       <tc:selectManyShuttle id="errorShuttle" validator="#{severityController.addError}">
         <tc:selectItem itemValue="Entry One"/>
         <tc:selectItem itemValue="Entry Two"/>
       </tc:selectManyShuttle>
     </tc:segmentLayout>
+    <tc:segmentLayout medium="6seg">
+      <tc:range id="errorRange" validator="#{severityController.addError}"/>
+      <tc:stars id="errorStars" validator="#{severityController.addError}"/>
+    </tc:segmentLayout>
   </tc:section>
 
   <tc:section label="Warning">
@@ -139,12 +147,16 @@
       </tc:selectManyListbox>
     </tc:segmentLayout>
     <tc:segmentLayout medium="6seg">
-      <tc:file id="warnFile" validator="#{severityController.addWarn}"/>
+      <tc:file id="warnFile" validator="#{severityController.addWarn}" required="true"/>
       <tc:selectManyShuttle id="warnShuttle" validator="#{severityController.addWarn}">
         <tc:selectItem itemValue="Entry One"/>
         <tc:selectItem itemValue="Entry Two"/>
       </tc:selectManyShuttle>
     </tc:segmentLayout>
+    <tc:segmentLayout medium="6seg">
+      <tc:range id="warnRange" validator="#{severityController.addWarn}"/>
+      <tc:stars id="warnStars" validator="#{severityController.addWarn}"/>
+    </tc:segmentLayout>
   </tc:section>
 
   <tc:section label="Info">
@@ -180,11 +192,15 @@
       </tc:selectManyListbox>
     </tc:segmentLayout>
     <tc:segmentLayout medium="6seg">
-      <tc:file id="infoFile" validator="#{severityController.addInfo}"/>
+      <tc:file id="infoFile" validator="#{severityController.addInfo}" required="true"/>
       <tc:selectManyShuttle id="infoShuttle" validator="#{severityController.addInfo}">
         <tc:selectItem itemValue="Entry One"/>
         <tc:selectItem itemValue="Entry Two"/>
       </tc:selectManyShuttle>
     </tc:segmentLayout>
+    <tc:segmentLayout medium="6seg">
+      <tc:range id="infoRange" validator="#{severityController.addInfo}"/>
+      <tc:stars id="infoStars" validator="#{severityController.addInfo}"/>
+    </tc:segmentLayout>
   </tc:section>
 </ui:composition>