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 2017/12/08 09:24:22 UTC
[myfaces-tobago] 02/02: improve demo * demo page for tc:out
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 bbf3c2d41edc43ff194f419d04e4859d92682ca1
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Dec 8 10:23:10 2017 +0100
improve demo
* demo page for tc:out
---
.../webapp/content/20-component/020-output/10-out/out.xhtml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml
index 3883110..5fc9db5 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/020-output/10-out/out.xhtml
@@ -23,12 +23,20 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:param name="title" value="#{demoBundle.out} <tc:out>"/>
<p>The <code class="language-markup"><tc:out/></code> display an outputtext combined with a label.</p>
- <tc:link label="Tag Library Documentation" image="#{request.contextPath}/image/feather-leaf.png" link="#{demoBundle.tagDocUrl}/#{info.stableVersion}/tld/tc/out.html"/>
+ <tc:link label="Tag Library Documentation" image="#{request.contextPath}/image/feather-leaf.png"
+ link="#{demoBundle.tagDocUrl}/#{info.stableVersion}/tld/tc/out.html"/>
<tc:section label="Basics">
<p>To put a label in front of a outputtext, use the <code>label</code> attribute.</p>
<pre><code class="language-markup"><tc:out label="Output" value="Some Text"/></code></pre>
<tc:out id="o1" label="Output" value="Some Text"/>
<tc:out id="o2" value="Output without a label"/>
+ <tc:section label="Skip with compact">
+ <p>If using <code>labelLayout="skip"</code> there is still a tag surrounding the output text.</p>
+ <tc:out id="outSkip" value="This text is rendered by tc:out with labelLayout=skip." labelLayout="skip"/>
+ <p>Set <code>compact="true"</code> to remove the surrounding tag as well.</p>
+ <tc:out id="outSkipCompact" value="This text is rendered by tc:out with labelLayout=skip and compact=true."
+ labelLayout="skip" compact="true"/>
+ </tc:section>
</tc:section>
<tc:section label="Escape">
<p>If the given string to the outputfield is HTML/XML code, it will be escaped by default.
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.