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 2021/10/20 18:32:41 UTC

[myfaces-tobago] 04/04: test: message-layout

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

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

commit 329bb4ab4fd1691d1f2f3d78b86841d9152699af
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Oct 20 20:05:35 2021 +0200

    test: message-layout
    
    * use static values for shuttle
---
 .../500-message-layout/message-layout.xhtml             | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4800-labelLayout/500-message-layout/message-layout.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4800-labelLayout/500-message-layout/message-layout.xhtml
index 2a49f0b..4ef29d9 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4800-labelLayout/500-message-layout/message-layout.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/4800-labelLayout/500-message-layout/message-layout.xhtml
@@ -50,14 +50,17 @@
     </tc:section>
 
     <tc:section label="Shuttle">
-      <tc:selectManyShuttle id="shuttleCompare" label="Shuttle" value="#{selectManyShuttleController.selectedPlanets}">
-        <tc:selectItems value="#{selectManyShuttleController.planets}"
-                        var="planet" itemLabel="#{planet.name}" itemValue="#{planet}"/>
+      <tc:selectManyShuttle id="shuttleCompare" label="Shuttle">
+        <tc:selectItem itemLabel="Alpha"/>
+        <tc:selectItem itemLabel="Beta"/>
+        <tc:selectItem itemLabel="Gamma"/>
+        <tc:selectItem itemLabel="Delta"/>
       </tc:selectManyShuttle>
-      <tc:selectManyShuttle id="shuttle" label="Shuttle" value="#{selectManyShuttleController.selectedPlanets}"
-                            required="true">
-        <tc:selectItems value="#{selectManyShuttleController.planets}"
-                        var="planet" itemLabel="#{planet.name}" itemValue="#{planet}"/>
+      <tc:selectManyShuttle id="shuttle" label="Shuttle" required="true">
+        <tc:selectItem itemLabel="Alpha"/>
+        <tc:selectItem itemLabel="Beta"/>
+        <tc:selectItem itemLabel="Gamma"/>
+        <tc:selectItem itemLabel="Delta"/>
       </tc:selectManyShuttle>
     </tc:section>
   </tc:panel>