Codota Logo
HtmlOutputText.<init>
Code IndexAdd Codota to your IDE (free)

How to use
javax.faces.component.html.HtmlOutputText
constructor

Best Java code snippets using javax.faces.component.html.HtmlOutputText.<init> (Showing top 17 results out of 315)

  • Common ways to obtain HtmlOutputText
private void myMethod () {
HtmlOutputText h =
  • Codota Iconnew HtmlOutputText()
  • Codota IconApplication application;String componentType;(HtmlOutputText) application.createComponent(componentType)
  • Smart code suggestions by Codota
}
origin: stackoverflow.com

 @PostConstruct
public void testMethod(){
  outputText = new HtmlOutputText();
  getOutputText().setValue(displayText);
}
origin: stackoverflow.com

 private UIPanel panel;

// getter and setter


// Action method, might also work in a @PostConstruct
public String showComponent() {
  if (showComponent1) {
    UIOutput component1 = new HtmlOutputText();
    component1.setValue("Hello world!");

    getPanel().getChildren().add(component1);
  }

  return "viewId";
}
origin: stackoverflow.com

 public void encodeBegin(FacesContext context) throws IOException {
 getChildren().add(new HtmlLabel());
 getChildren().add(new HtmlOutputText();
}
origin: stackoverflow.com

 String value;
HtmlOutputText htmlOutputText = new HtmlOutputText();
htmlOutputText.setValue(value);
origin: stackoverflow.com

 HtmlOutputText text = new HtmlOutputText();
text.setValueExpression("value", createValueExpression("#{bean.property}", String.class));
origin: stackoverflow.com

 private HtmlPanelGrid gridComponent;

public void someFunction(){

HtmlOutputText outPutText = new HtmlOutputText();
outPutText.setValue("Some Text");

gridComponent.getChildren().add(outPutText);
origin: stackoverflow.com

 ...
public class MyBackingBean {
...

private HtmlPanelGroup generatedElements = new HtmlPanelGroup();

public void init() {
   for (Element e : myElements) {
     // Take any element type you want
     HtmlOutputText subElement = new HtmlOutputText();
     subElement.setValue(e.getText());
     generatedElements.getChildren().add(subElement);
   }
}
origin: org.rhq/rhq-core-gui

@NotNull
public static HtmlColumn addColumn(@NotNull
UIComponent parent, FacesComponentIdFactory idFactory, CharSequence headerText, String headerStyle) {
  HtmlColumn column = createComponent(HtmlColumn.class, idFactory);
  HtmlOutputText header = new HtmlOutputText();
  header.setValue(headerText);
  header.setStyleClass(headerStyle);
  column.setHeader(header);
  parent.getChildren().add(column);
  return column;
}
origin: com.caucho/resin

public static UIComponent addVerbatim(UIComponent parent,
                   String text)
 throws Exception
{
 HtmlOutputText verbatim = new HtmlOutputText();
 verbatim.setTransient(true);
 verbatim.setValue(text);
 verbatim.setEscape(false);
 parent.getChildren().add(verbatim);
 return verbatim;
}
origin: mysticfall/pivot4j

/**
 * @see org.pivot4j.analytics.property.AbstractPropertyInputEditor#createComponent(org.pivot4j.analytics.property.PropertyDescriptor,
 *      javax.faces.component.UIComponent, javax.el.ValueExpression,
 *      javax.el.MethodExpression, java.lang.String)
 */
@Override
public void createComponent(PropertyDescriptor descriptor,
    UIComponent parent, ValueExpression expression,
    MethodExpression listener, String update) {
  super.createComponent(descriptor, parent, expression, listener, update);
  HtmlOutputText unitText = new HtmlOutputText();
  unitText.setStyleClass("unit-text");
  unitText.setValue("(pt)");
  parent.getChildren().add(unitText);
}
origin: com.caucho/resin

public static UIComponent addVerbatim(UIComponent parent,
                   String prevId,
                   String text)
 throws Exception
{
 HtmlOutputText verbatim = new HtmlOutputText();
 verbatim.setTransient(true);
 verbatim.setValue(text);
 verbatim.setEscape(false);
 addChild(parent, prevId, verbatim);
 return verbatim;
}

origin: org.lunarray.model.generation/jsf

/**
 * Creates the label.
 * 
 * @param composer
 *            The composer.
 * @param htmlForm
 *            The form.
 */
private void createLabel(final UIComponent htmlForm, final Composer<RenderContext, ?, ?> composer) {
  final HtmlOutputText labelText = new HtmlOutputText();
  labelText.setValue(composer.getLabel());
  labelText.setStyleClass(composer.getContext().resolveStyleClass(JsfStyleClasses.TABLE_LABEL));
  htmlForm.getChildren().add(labelText);
}
origin: org.lunarray.model.generation/jsf

/**
 * Process the label.
 * 
 * @param composer
 *            The composer.
 * @param htmlForm
 *            The form.
 */
private void processLabel(final Composer<RenderContext, S, E> composer, final UIComponent htmlForm) {
  final HtmlOutputText labelText = new HtmlOutputText();
  labelText.setValue(composer.getLabel());
  labelText.setStyleClass(composer.getContext().resolveStyleClass(JsfStyleClasses.FORM_LABEL));
  htmlForm.getChildren().add(labelText);
}
origin: org.lunarray.model.generation/jsf

/**
 * Sets the label.
 * 
 * @param jsfContext
 *            The context.
 * @param label
 *            The label.
 */
private void setLabel(final RenderContext jsfContext, final String label) {
  this.label = new HtmlOutputText();
  this.label.setId(VariableUtil.compileName("label_", jsfContext.getPrefixDeque()));
  this.label.setValue(label);
  this.label.setStyleClass(jsfContext.resolveStyleClass(JsfStyleClasses.TABLE_OUTPUT_LABEL));
}
origin: org.lunarray.model.generation/jsf

/** {@inheritDoc} */
@Override
public void build(final PropertyDescriptor<P, E> property, final RenderContext context) {
  Validate.notNull(property, "Descriptor may not be null.");
  Validate.notNull(context, "Render context may not be null.");
  final Deque<PropertyDescriptor<?, ?>> prefixes = context.getPrefixDeque();
  this.buildLabel(property, context);
  this.buildMessages(property, context);
  this.input = new HtmlOutputText();
  this.addValue(this.input, prefixes, property, context);
  this.input.setId(this.compileInputName(prefixes));
  this.input.setStyleClass(context.resolveStyleClass(JsfStyleClasses.FORM_INPUT_ROTEXT));
  final PresentationPropertyDescriptor<?, ?> presentationProperty = property.adapt(PresentationPropertyDescriptor.class);
  String format = null;
  if (!CheckUtil.isNull(presentationProperty)) {
    format = presentationProperty.getFormat();
  }
  if (!CheckUtil.isNull(format)) {
    final HtmlFormat htmlFormat = new HtmlFormat();
    htmlFormat.setFormat(format);
    this.input.getFacets().put("format", htmlFormat);
  }
}
origin: org.lunarray.model.generation/jsf

Validate.notNull(jsfContext, "Render context may not be null.");
HtmlOutputText output;
output = new HtmlOutputText();
output.setStyleClass(jsfContext.resolveStyleClass(JsfStyleClasses.TABLE_OUTPUT_TEXT));
output.setValueExpression(
origin: mysticfall/pivot4j

HtmlOutputText text = new HtmlOutputText();
String id = "txt-" + text.hashCode();
javax.faces.component.htmlHtmlOutputText<init>

Javadoc

Construct an instance of the HtmlOutputText.

Popular methods of HtmlOutputText

  • getAttributes
  • setRendererType
  • isEscape
    Return the value of the escape property. Contents: Flag indicating that characters that are sensiti
  • getStateHelper
  • getValueExpression
  • setValue
  • handleAttribute
  • setStyleClass
    Set the value of the styleClass property.
  • setConverter
  • setValueExpression
  • setEscape
    Set the value of the escape property.
  • setId
  • setEscape,
  • setId,
  • getValue,
  • restoreState,
  • saveState,
  • setStyle,
  • getFacesContext,
  • isRendered,
  • setTitle

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now