Codota Logo
javax.faces.component.html
Code IndexAdd Codota to your IDE (free)

How to use javax.faces.component.html

Best Java code snippets using javax.faces.component.html (Showing top 20 results out of 342)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: primefaces/primefaces

protected int getMaxlength(UIInput input) {
  if (input instanceof HtmlInputText) {
    return ((HtmlInputText) input).getMaxlength();
  }
  else if (input instanceof HtmlInputSecret) {
    return ((HtmlInputSecret) input).getMaxlength();
  }
  return Integer.MIN_VALUE;
}
origin: primefaces/primefaces

protected void setMaxlength(UIInput input, int maxlength) {
  if (input instanceof HtmlInputText) {
    ((HtmlInputText) input).setMaxlength(maxlength);
  }
  else if (input instanceof HtmlInputSecret) {
    ((HtmlInputSecret) input).setMaxlength(maxlength);
  }
  else if (input instanceof InputTextarea) {
    ((InputTextarea) input).setMaxlength(maxlength);
  }
}
origin: primefaces/primefaces

Object value = link.getValue();
  for (UIComponent child : link.getChildren()) {
    if (child instanceof ValueHolder) {
      return exportValue(context, child);
origin: javax/javaee-web-api

public HtmlForm() {
  super();
  setRendererType("javax.faces.Form");
  handleAttribute("enctype", "application/x-www-form-urlencoded");
}
origin: org.apache.myfaces.core/myfaces-api

public void setOnmouseout(String onmouseout)
{
  getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); 
  _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP);
}
// Property: onmouseover
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 HtmlPanelGroup getNavigationMenu() {
   HtmlPanelGroup menu = new HtmlPanelGroup();
   menu.setId("menu");
   HtmlOutputLink link = new HtmlOutputLink();
   // ... other components etc.
   menu.getChildren().add(link);
}
origin: org.apache.myfaces.core/myfaces-api

/**
 * Construct an instance of the HtmlInputHidden.
 */
public HtmlInputHidden()
{
 setRendererType("javax.faces.Hidden");
}
origin: primefaces/primefaces

  @Override
  public Converter getConverter() {
    Converter converter = super.getConverter();

    if (converter == null && PrimeApplicationContext.getCurrentInstance(getFacesContext()).getConfig().isClientSideValidationEnabled()) {
      DateTimeConverter con = new DateTimeConverter();
      con.setPattern(calculatePattern());
      con.setTimeZone(CalendarUtils.calculateTimeZone(this.getTimeZone()));
      con.setLocale(calculateLocale(getFacesContext()));

      return con;
    }

    return converter;
  }
}
origin: org.apache.myfaces.core/myfaces-api

public void setStyleClass(String styleClass)
{
  getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
  _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
}
origin: stackoverflow.com

 HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink();
link.setValue("Edit");
link.setOutcome("edit");
UIParameter param = new UIParameter();
param.setName("id");
param.setValue("500");
link.getChildren().add(param);
origin: org.apache.myfaces.core/myfaces-api

public static Object newInstance(String type) throws FacesException
{
  if (type == null)
  {
    return null;
  }
  return newInstance(simpleClassForName(type));
}
origin: org.apache.myfaces.core/myfaces-api

private static ResourceBundle getDefaultBundle(FacesContext facesContext,
                        Locale locale)
{
  return getBundle(facesContext, locale, FacesMessage.FACES_MESSAGES);
}
origin: org.primefaces/primefaces

@Override
public int getCols() {
  int cols = super.getCols();

  return cols > 0 ? cols : 20;
}
origin: org.primefaces/primefaces

@Override
public int getRows() {
  int rows = super.getRows();

  return rows > 0 ? rows : 3;
}
origin: com.sun.faces/jsf-api

public HtmlForm() {
  super();
  setRendererType("javax.faces.Form");
  handleAttribute("enctype", "application/x-www-form-urlencoded");
}
origin: org.apache.myfaces.core/myfaces-api

public void setOnclick(String onclick)
{
  getStateHelper().put(PropertyKeys.onclick, onclick ); 
  _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP);
}
// Property: ondblclick
origin: org.primefaces/primefaces

protected int getMaxlength(UIInput input) {
  if (input instanceof HtmlInputText) {
    return ((HtmlInputText) input).getMaxlength();
  }
  else if (input instanceof HtmlInputSecret) {
    return ((HtmlInputSecret) input).getMaxlength();
  }
  return Integer.MIN_VALUE;
}
origin: org.apache.myfaces.core/myfaces-api

public void setLabel(String label)
{
  getStateHelper().put(PropertyKeys.label, label ); 
  _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LABEL_PROP);
}
// Property: alt
origin: org.apache.myfaces.core/myfaces-api

public void setOnchange(String onchange)
{
  getStateHelper().put(PropertyKeys.onchange, onchange ); 
  _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCHANGE_PROP);
}
javax.faces.component.html

Most used classes

  • HtmlInputText
    Represents an HTML input element of type text. By default, the rendererType property must be set to
  • HtmlInputTextarea
    Represents an HTML textarea element. By default, the rendererType property must be set to "javax.fa
  • HtmlOutputText
    Renders the component value as text, optionally wrapping in aspan element if I18N attributes, CSS s
  • HtmlCommandLink
    Represents an HTML a element for a hyperlink that acts like a submit button. This component must be
  • HtmlCommandButton
    Represents an HTML input element for a button of type submit or reset. The label text is specified b
  • HtmlInputSecret,
  • HtmlOutputLabel,
  • HtmlDataTable,
  • HtmlPanelGroup,
  • HtmlMessage,
  • HtmlOutputLink,
  • HtmlSelectOneMenu,
  • HtmlSelectOneRadio,
  • HtmlMessages,
  • HtmlSelectManyCheckbox,
  • HtmlPanelGrid,
  • HtmlSelectBooleanCheckbox,
  • HtmlSelectOneListbox,
  • HtmlSelectManyListbox
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