Examples of HtmlOutputFormat


Examples of javax.faces.component.html.HtmlOutputFormat

{
  if (!(component instanceof HtmlOutputFormat))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlOutputFormat");
  }
  HtmlOutputFormat comp = (HtmlOutputFormat)component;

  super.setProperties(component);

  if (_escape != null)
  {
    comp.setValueExpression("escape", _escape);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_converter != null)
  {
    if (!_converter.isLiteralText())
    {
      comp.setValueExpression("converter", _converter);
    }
    else
    {
      String s = _converter.getExpressionString();
      if (s != null)
      {
        Converter converter = getFacesContext().getApplication().
          createConverter(s);
        comp.setConverter(converter);
      }
    }
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputFormat

{
  if (!(component instanceof HtmlOutputFormat))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlOutputFormat");
  }
  HtmlOutputFormat comp = (HtmlOutputFormat)component;

  super.setProperties(component);

  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_escape != null)
  {
    comp.setValueExpression("escape", _escape);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_converter != null)
  {
    if (!_converter.isLiteralText())
    {
      comp.setValueExpression("converter", _converter);
    }
    else
    {
      String s = _converter.getExpressionString();
      if (s != null)
      {
        Converter converter = getFacesContext().getApplication().
          createConverter(s);
        comp.setConverter(converter);
      }
    }
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputFormat

        return new TestSuite(HtmlFormatRendererTest.class);
    }
   
    public void setUp() throws Exception {
        super.setUp();
        outputFormat = new HtmlOutputFormat();
        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);
       
        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
        facesContext.getRenderKit().addRenderer(
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputFormat

{
  if (!(component instanceof HtmlOutputFormat))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlOutputFormat");
  }
  HtmlOutputFormat comp = (HtmlOutputFormat)component;

  super.setProperties(component);

  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_escape != null)
  {
    comp.setValueExpression("escape", _escape);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_converter != null)
  {
    if (!_converter.isLiteralText())
    {
      comp.setValueExpression("converter", _converter);
    }
    else
    {
      String s = _converter.getExpressionString();
      if (s != null)
      {
        Converter converter = getFacesContext().getApplication().
          createConverter(s);
        comp.setConverter(converter);
      }
    }
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputFormat

        return new TestSuite(HtmlFormatRendererTest.class);
    }
   
    public void setUp() throws Exception {
        super.setUp();
        outputFormat = new HtmlOutputFormat();
        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);
       
        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
        facesContext.getRenderKit().addRenderer(
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputFormat

        return new TestSuite(HtmlFormatRendererTest.class);
    }
   
    public void setUp() throws Exception {
        super.setUp();
        outputFormat = new HtmlOutputFormat();
        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);
       
        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
        facesContext.getRenderKit().addRenderer(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.