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 2014/08/22 14:53:45 UTC

svn commit: r1619789 - in /myfaces/tobago/trunk: tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/ tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/ tobago-example/tobago-example-demo/src/main/web...

Author: lofwyr
Date: Fri Aug 22 12:53:45 2014
New Revision: 1619789

URL: http://svn.apache.org/r1619789
Log:
documentation of renderedPartially

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasRenderedPartially.java
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/tab-ajax.xhtml
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/50-partial/partial.xhtml

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasRenderedPartially.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasRenderedPartially.java?rev=1619789&r1=1619788&r2=1619789&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasRenderedPartially.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/declaration/HasRenderedPartially.java Fri Aug 22 12:53:45 2014
@@ -25,7 +25,23 @@ import org.apache.myfaces.tobago.apt.ann
 
 public interface HasRenderedPartially {
   /**
+   * <p>
    * Indicate the partially rendered Components in a case of a submit.
+   * </p>
+   * <p>
+   * The search depends on the number of prefixed colons in the relativeId:
+   * <dl>
+   *   <dd>colonCount == 0</dd>
+   *   <dt>fully relative</dt>
+   *   <dd>colonCount == 1</dd>
+   *   <dt>absolute (still normal findComponent syntax)</dt>
+   *   <dd>colonCount > 1</dd>
+   *   <dt>for each extra colon after 1, go up a naming container</dt>
+   * </dl>
+   * </p>
+   * <p>
+   * If a literal is specified the identifiers must be space delimited.
+   * </p>
    */
    @TagAttribute
    @UIComponentTagAttribute(type = "java.lang.String[]")

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/tab-ajax.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/tab-ajax.xhtml?rev=1619789&r1=1619788&r2=1619789&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/tab-ajax.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/04-tab/01-ajax/tab-ajax.xhtml Fri Aug 22 12:53:45 2014
@@ -53,9 +53,8 @@
           <tc:toolBar>
             <tc:toolBarCommand actionListener="#{demo.hideTab2}"
                                tip="#{overviewBundle.closeButtonTip}"
-                               image="image/remove.gif">
-              <tc:attribute name="renderedPartially" value=":page:tabMarsOuterForm2"/>
-            </tc:toolBarCommand>
+                               image="image/remove.gif"
+                               renderedPartially=":page:tabMarsOuterForm2"/>
           </tc:toolBar>
         </f:facet>
         <f:facet name="layout"><tc:gridLayout rows="1*;auto;auto;1*"/></f:facet>

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/50-partial/partial.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/50-partial/partial.xhtml?rev=1619789&r1=1619788&r2=1619789&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/50-partial/partial.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/50-partial/partial.xhtml Fri Aug 22 12:53:45 2014
@@ -93,7 +93,7 @@
                    action="#{partialReloadController.reload}" renderedPartially="right"/>
 
         <tc:button label="Reload both" tip="Reload both boxes"
-                   action="#{partialReloadController.reload}" renderedPartially="left,right">
+                   action="#{partialReloadController.reload}" renderedPartially="left right">
           <tc:gridLayoutConstraint columnSpan="2"/>
         </tc:button>
 
@@ -105,13 +105,13 @@
 
         <tc:button label="Reload both (wait 3 s)"
                    tip="Reload both boxes, but the server has a delay of 3 seconds"
-                   action="#{partialReloadController.waitAndReload3}" renderedPartially="left,right">
+                   action="#{partialReloadController.waitAndReload3}" renderedPartially="left right">
           <tc:gridLayoutConstraint columnSpan="2"/>
         </tc:button>
 
         <tc:button label="Reload both (wait 7 s)"
                    tip="Reload both boxes, but the server has a delay of 7 seconds, this is more than the default timeout for AJAX"
-                   action="#{partialReloadController.waitAndReload7}" renderedPartially="left,right">
+                   action="#{partialReloadController.waitAndReload7}" renderedPartially="left right">
           <tc:gridLayoutConstraint columnSpan="2"/>
         </tc:button>