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 2016/07/01 13:37:51 UTC
svn commit: r1750926 - in
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp:
content/20-component/020-output/30-messages/
content/20-component/050-container/10-box/
tobago-resource/html/standard/standard/property/
Author: lofwyr
Date: Fri Jul 1 13:37:51 2016
New Revision: 1750926
URL: http://svn.apache.org/viewvc?rev=1750926&view=rev
Log:
TOBAGO 1544: Demo
[developed by hnoeth]
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/30-messages/messages.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/050-container/10-box/box.xhtml
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/30-messages/messages.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/30-messages/messages.xhtml?rev=1750926&r1=1750925&r2=1750926&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/30-messages/messages.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/30-messages/messages.xhtml Fri Jul 1 13:37:51 2016
@@ -19,7 +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"
+ xmlns:f="http://java.sun.com/jsf/core">
<ui:param name="title" value="#{overviewBundle.messages} <tc:messages>"/>
<p>Messages are displayed via <code class="language-markup"><tc:messages/></code> tag.</p>
<tc:link label="Tag Library Documentation" image="image/feather-leaf.png"
@@ -27,14 +28,18 @@
<tc:section label="Create Message">
<p>To create messages, press one of the following buttons. The message will be displayed in the tabgroup.</p>
+ <p>If you are using ajax, make sure to rerender the <code class="language-markup"><tc:message/></code> tag.</p>
<tc:button label="Fatal" action="#{messagesController.createFatalMessage}"/>
<tc:button label="Error" action="#{messagesController.createErrorMessage}"/>
<tc:button label="Warn" action="#{messagesController.createWarnMessage}"/>
<tc:button label="Info" action="#{messagesController.createInfoMessage}"/>
<tc:button label="7 Messages" action="#{messagesController.createSevenMessages}"/>
+ <tc:button label="7 Messages (Ajax)" action="#{messagesController.createSevenMessages}">
+ <f:ajax render="tabGroup"/>
+ </tc:button>
</tc:section>
- <tc:tabGroup switchType="reloadPage">
+ <tc:tabGroup id="tabGroup" switchType="reloadPage">
<tc:tab label="Without attributes">
<p>On this tab, you can see how messages are displayed if no attribute are set for the
<code class="language-markup"><tc:messages/></code> tag.</p>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/050-container/10-box/box.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/050-container/10-box/box.xhtml?rev=1750926&r1=1750925&r2=1750926&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/050-container/10-box/box.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/050-container/10-box/box.xhtml Fri Jul 1 13:37:51 2016
@@ -35,12 +35,15 @@
<tc:section label="Collapse/Expand">
<p>A contentbox can be collapsed via <code>collapsed</code> attribute.
+ Possible values are 'visible' (content is shown), 'hidden' (content is hidden) and
+ 'absent' (content is not rendered).
Also have a look at <tc:link label="#{overviewBundle.collapsible}"
link="/faces/content/30-concept/53-collapsible/collapsible.xhtml"/>.</p>
- <pre><code class="language-markup"><tc:box label="Collapsed" collapsed="true">Content</tc:box></code></pre>
- <tc:segmentLayout medium="6;6">
- <tc:box label="Collapsed" collapsed="true">Content</tc:box>
- <tc:box label="Expanded" collapsed="false">Content</tc:box>
+ <pre><code class="language-markup"><tc:box label="Collapsed" collapsed="visible">Content</tc:box></code></pre>
+ <tc:segmentLayout medium="4;4;4">
+ <tc:box label="Visible" collapsed="visible">Content</tc:box>
+ <tc:box label="Hidden" collapsed="hidden">Content</tc:box>
+ <tc:box label="Absent" collapsed="absent">Content</tc:box>
</tc:segmentLayout>
</tc:section>
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml?rev=1750926&r1=1750925&r2=1750926&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/tobago-resource/html/standard/standard/property/overview.properties.xml Fri Jul 1 13:37:51 2016
@@ -59,6 +59,7 @@
<entry key="selectManyCheckbox">Checkbox Group</entry>
<entry key="selectManyListbox">Multiselection List</entry>
<entry key="selectManyShuttle">Shuttle List</entry>
+ <entry key="command">Commands</entry>
<entry key="button_link">Link & Button</entry>
<entry key="default_command">Default Command</entry>
<entry key="buttons">Button Group</entry>
@@ -128,6 +129,9 @@
<entry key="tx">TX Tag Library</entry>
<entry key="toolBar">Toolbar</entry>
+ <!-- navigate : test -->
+ <entry key="test">Tests</entry>
+
<entry key="validation-severity">Severity</entry>
<entry key="browser">Browser</entry>
<entry key="locale">Locale</entry>