Examples of HtmlOutputLink


Examples of javax.faces.component.html.HtmlOutputLink


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlOutputLink();
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

    }

    @NotNull
    public static HtmlOutputLink addOutputLink(@NotNull
    UIComponent parent, FacesComponentIdFactory idFactory, String value) {
        HtmlOutputLink link = FacesComponentUtility.createComponent(HtmlOutputLink.class, idFactory);
        link.setValue(value);
        parent.getChildren().add(link);
        return link;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

        FacesComponentUtility.addParameter(okLink, null, "refresh", configurationSetComponent.getId());
        FacesComponentUtility.addButton(okLink, "OK", CssStyleClasses.BUTTON_MEDIUM);

        // Cancel button (only if not read-only)
        if (!configurationSetComponent.isReadOnly()) {
            HtmlOutputLink cancelLink = FacesComponentUtility.addOutputLink(panelGrid, null, "#");
            cancelLink.setOnclick("Richfaces.hideModalPanel('" + modalPanelClientId + "'); return false;");
            cancelLink.setTitle("Cancel");
            FacesComponentUtility.addButton(cancelLink, "CANCEL", CssStyleClasses.BUTTON_MEDIUM);
        }
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

    private void addQuickLinks(QuickLinksDescriptor descriptor, ResourceFacets facets) {
        HtmlMenuItem quickLinksItem = new HtmlMenuItem();
        quickLinksItem.setSubmitMode("none");
        quickLinksItem.setId(descriptor.getMenuItemId());

        HtmlOutputLink link;
        HtmlGraphicImage image;

        if (descriptor.getMonitoringUrl() != null /* && LookupUtil.getSystemManager().isMonitoringEnabled()*/) {
            link = FacesComponentUtility.addOutputLink(quickLinksItem, null, descriptor.getMonitoringUrl());
            image = FacesComponentUtility.addGraphicImage(link, null, "/images/icons/Monitor_grey_16.png", "Monitor");
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlOutputLink();
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

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

  super.setProperties(component);

  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_coords != null)
  {
    comp.setValueExpression("coords", _coords);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_onfocus != null)
  {
    comp.setValueExpression("onfocus", _onfocus);
  }
  if (_accesskey != null)
  {
    comp.setValueExpression("accesskey", _accesskey);
  }
  if (_onblur != null)
  {
    comp.setValueExpression("onblur", _onblur);
  }
  if (_hreflang != null)
  {
    comp.setValueExpression("hreflang", _hreflang);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_shape != null)
  {
    comp.setValueExpression("shape", _shape);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_disabled != null)
  {
    comp.setValueExpression("disabled", _disabled);
  }
  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 (_target != null)
  {
    comp.setValueExpression("target", _target);
  }
  if (_charset != null)
  {
    comp.setValueExpression("charset", _charset);
  }
  if (_type != null)
  {
    comp.setValueExpression("type", _type);
  }
  if (_rev != null)
  {
    comp.setValueExpression("rev", _rev);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_tabindex != null)
  {
    comp.setValueExpression("tabindex", _tabindex);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_rel != null)
  {
    comp.setValueExpression("rel", _rel);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

        super.setUp();

        UIForm form = new UIForm();

        commandLink = new HtmlCommandLink();
        outputLink = new HtmlOutputLink();
        outputLink.setValue("http://someurl");
        outcomeTargetLink = new HtmlOutcomeTargetLink();

        form.getChildren().add(commandLink);
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

    writer.write("\n");
  }
 
  public void encodeChildren(FacesContext context, UIComponent component) throws IOException
  {
    HtmlOutputLink link = getHtmlOutputLink(context, component);
    if(link!=null)
    {
      link.encodeAll(context);
    }
  }
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

    }
  }
 
  private HtmlOutputLink getHtmlOutputLink(FacesContext context, UIComponent component)
  {
    HtmlOutputLink link = null;
    for(UIComponent uiChild : component.getChildren())
    {
      if(uiChild instanceof HtmlOutputLink)
      {
        link = (HtmlOutputLink)uiChild;
        String anchor = (String)component.getAttributes().get("anchor");
        if(anchor!=null)
        {
          String href = (String)link.getValue();
          link.setValue(href+"#_"+anchor);
        }
        return link;
      }
    }
    return link;
View Full Code Here

Examples of javax.faces.component.html.HtmlOutputLink

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

  super.setProperties(component);

  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_onblur != null)
  {
    comp.setValueExpression("onblur", _onblur);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_charset != null)
  {
    comp.setValueExpression("charset", _charset);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_target != null)
  {
    comp.setValueExpression("target", _target);
  }
  if (_hreflang != null)
  {
    comp.setValueExpression("hreflang", _hreflang);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_rev != null)
  {
    comp.setValueExpression("rev", _rev);
  }
  if (_disabled != null)
  {
    comp.setValueExpression("disabled", _disabled);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  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 (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_tabindex != null)
  {
    comp.setValueExpression("tabindex", _tabindex);
  }
  if (_shape != null)
  {
    comp.setValueExpression("shape", _shape);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_type != null)
  {
    comp.setValueExpression("type", _type);
  }
  if (_accesskey != null)
  {
    comp.setValueExpression("accesskey", _accesskey);
  }
  if (_coords != null)
  {
    comp.setValueExpression("coords", _coords);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_onfocus != null)
  {
    comp.setValueExpression("onfocus", _onfocus);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_rel != null)
  {
    comp.setValueExpression("rel", _rel);
  }
}
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.