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 2018/01/03 13:12:07 UTC
[myfaces-tobago] branch master updated: TOBAGO-154: Add converter
for tab label and box label * example
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 c4045a2 TOBAGO-154: Add converter for tab label and box label * example
new 54a8dfc Merge remote-tracking branch 'origin/master'
c4045a2 is described below
commit c4045a2fcd55e99a02902dd6ba552346ed6ab4fe
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Wed Jan 3 10:40:59 2018 +0100
TOBAGO-154: Add converter for tab label and box label
* example
---
.../20-component/070-tab/00-client/tab-client.xhtml | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/070-tab/00-client/tab-client.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/070-tab/00-client/tab-client.xhtml
index da1857c..8cca9f3 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/070-tab/00-client/tab-client.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/070-tab/00-client/tab-client.xhtml
@@ -20,7 +20,8 @@
<ui:composition template="/main.xhtml"
xmlns="http://www.w3.org/1999/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="#{demoBundle.tab} - #{demoBundle.tab_client} <tc:tab>"/>
<p>Tabs can be created with one or more <code class="language-markup"><tc:tab/></code> within a
<code class="language-markup"><tc:tabGroup></code>.
@@ -69,6 +70,21 @@
<p>Neither a label or an image are set. In this case the header gets a label with the indexnumber of the tab in
the tabgroup.</p>
</tc:tab>
+ <tc:tab id="t25">
+ <f:facet name="label">
+ <tc:out value="Once: " labelLayout="skip" compact="true"/>
+ <tc:out value="#{dateController.once}" labelLayout="skip" compact="true">
+ <f:convertDateTime dateStyle="short" type="date"/>
+ </tc:out>
+ </f:facet>
+ <p>
+ It's also possible to set the label via a label facet. So you can use e. g. converters.
+ </p>
+ <p>
+ If using this, don't forget to set <code>labelLayout="skip" compact="true"</code> to switch off
+ the layout and boxes of the components.
+ </p>
+ </tc:tab>
</tc:tabGroup>
</tc:section>
</ui:composition>
--
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].