Package javax.faces.component.html

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


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

  super.setProperties(component);

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


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

        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

        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


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

       
        HtmlCommandLink link2 = (HtmlCommandLink) form.findComponent("link2");
        Assert.assertNotNull(link2);
        Assert.assertEquals(1, link2.getActionListeners().length);
       
        HtmlOutputLink link3 = (HtmlOutputLink) form.findComponent("link3");
        Assert.assertNotNull(link3);
        Assert.assertEquals("/my/new/location.txt", link3.getValue());
       
        HtmlOutcomeTargetLink link4 = (HtmlOutcomeTargetLink) form.findComponent("link4");
        Assert.assertNotNull(link4);
        Assert.assertEquals("rollback", link4.getOutcome());
       
View Full Code Here

        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


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

            if (isDisabled()) {
                input.setDisabled(true);
            }
            addLabeledComponent(output, input);
        } else {
            HtmlOutputLink downloadLink = new HtmlOutputLink();
            downloadLink.setValue("javascript: downloadFile('" + getDataUuid().substring(HtmlFormBuilderItem.DATA_UUID_PREFIX.length(), getDataUuid().length()) + "');");
            HtmlOutputText linkText = new HtmlOutputText();
            linkText.setValue(file.getFilename());
            downloadLink.getChildren().add(linkText);
            addLabeledComponent(output, downloadLink);
        }
    }
View Full Code Here

TOP

Related Classes of javax.faces.component.html.HtmlOutputLink

Copyright © 2018 www.massapicom. 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.