View Javadoc

1   /*
2    * $Id: AsyncHtmlOutputText.java,v 1.2 2007/11/06 09:14:28 oeuillot Exp $
3    */
4   package org.rcfaces.core.internal.component;
5   
6   import javax.faces.component.UIComponent;
7   import javax.faces.component.html.HtmlOutputText;
8   
9   import org.rcfaces.core.internal.capability.IAsyncRenderComponent;
10  
11  /**
12   * 
13   * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
14   * @version $Revision: 1.2 $ $Date: 2007/11/06 09:14:28 $
15   */
16  public class AsyncHtmlOutputText extends HtmlOutputText {
17      private static final String REVISION = "$Revision: 1.2 $";
18  
19      public boolean isTransient() {
20          if (super.isTransient() == false) {
21              return false;
22          }
23  
24          for (UIComponent parent = getParent(); parent != null; parent = parent
25                  .getParent()) {
26              if (parent instanceof IAsyncRenderComponent) {
27  
28                  setTransient(false);
29                  return false;
30              }
31          }
32  
33          return true;
34      }
35  }