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 2021/02/03 14:14:41 UTC

[myfaces-tobago] branch master updated: demo: prepare importConstants

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

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


The following commit(s) were added to refs/heads/master by this push:
     new e06e4e6  demo: prepare importConstants
e06e4e6 is described below

commit e06e4e60de8084933f71875d66478de6c0456147
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Wed Feb 3 15:13:10 2021 +0100

    demo: prepare importConstants
---
 tobago-example/tobago-example-demo/src/main/webapp/main.xhtml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
index 465d7c7..60821b0 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/main.xhtml
@@ -26,6 +26,13 @@
         xmlns="http://www.w3.org/1999/xhtml">
   <f:view locale="#{localeController.locale}">
 
+<!-- XXX doesn't work, why? it does work, when uidefine with metatag is at the specific page -->
+    <!--
+    <f:metadata>
+      <f:importConstants type="org.apache.myfaces.tobago.renderkit.css.FaIcons" var="fa"/>
+    </f:metadata>
+    -->
+
     <tc:page label="#{title != null ? title : 'Tobago Demo - '.concat(navigationState.currentNode.label)}" id="page">
 
       <!--
@@ -78,6 +85,7 @@
       <tc:popup id="info" collapsedMode="hidden">
         <tc:box label="Client Information">
           <f:facet name="bar">
+<!--            <tc:button image="#{fa.CLOSE.name}">-->
             <tc:button image="fa-close">
               <tc:operation name="hide" for="info"/>
             </tc:button>