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:20 UTC

[myfaces-tobago] branch master updated (b636422 -> bbf3c2d)

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

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


    from b636422  undo: it's not possible to use an SNAPSHOT as parent in the internet.
     new 08286ab  improve javadoc * tc:out - fix javadoc for 'compact' attribute * tc:out - createSpan is deprecated now
     new bbf3c2d  improve demo * demo page for tc:out

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../tobago/internal/taglib/component/OutTagDeclaration.java    |  7 +++++--
 .../webapp/content/20-component/020-output/10-out/out.xhtml    | 10 +++++++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@myfaces.apache.org" <co...@myfaces.apache.org>'].

[myfaces-tobago] 02/02: improve demo * demo page for tc:out

Posted by hn...@apache.org.
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} &lt;tc:out&gt;"/>
   <p>The <code class="language-markup">&lt;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">&lt;tc:out label="Output" value="Some Text"/&gt;</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>.

[myfaces-tobago] 01/02: improve javadoc * tc:out - fix javadoc for 'compact' attribute * tc:out - createSpan is deprecated now

Posted by hn...@apache.org.
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 08286ab2096cabcf6d12a05e3ce16355201f3583
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Fri Dec 8 10:22:34 2017 +0100

    improve javadoc
    * tc:out - fix javadoc for 'compact' attribute
    * tc:out - createSpan is deprecated now
---
 .../tobago/internal/taglib/component/OutTagDeclaration.java        | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/OutTagDeclaration.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/OutTagDeclaration.java
index eb8fb79..c9523fd 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/OutTagDeclaration.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/OutTagDeclaration.java
@@ -70,13 +70,16 @@ public interface OutTagDeclaration
    * (e. g. an span or div tag around the output text).
    * Use true, if you enable the possibility to apply styles to the output.
    * Use false, if you want to keep the code small (especially inside of sheets).
+   * @deprecated after 4.0.0 release. Use attribute 'compact' instead.
    */
+  @Deprecated
   @UIComponentTagAttribute(type = "boolean", defaultValue = "true")
   void setCreateSpan(String createSpan);
 
   /**
-   * Use true, if you enable the possibility to apply styles to the output.
-   * Use false, if you want to keep the code small (especially inside of sheets).
+   * This attribute is useful if labelLayout=skip is set.
+   * Use true, if you want to only render the text (no surrounding tag).
+   * Use false, if you enable the possibility to apply styles to the output.
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "boolean", defaultValue = "false")

-- 
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.