Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlCommandLink


   
    protected HtmlCommandLink getLink(FacesContext facesContext, HtmlCollapsiblePanel collapsiblePanel)
        throws IOException
    {
        Application application = facesContext.getApplication();
        HtmlCommandLink link = (HtmlCommandLink)application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
        link.setId(collapsiblePanel.getId() + LINK_ID );
        link.setTransient(true);
        link.setImmediate(true);
        //link.addActionListener(new ChangeCollapsedHandler());

        List children = link.getChildren();
        // Create the indicator. You could later make this conditional and render optional images instead
        HtmlOutputText uiText = (HtmlOutputText)application.createComponent(HtmlOutputText.COMPONENT_TYPE);
        uiText.setTransient(true);
        uiText.setValue(collapsiblePanel.isCollapsed() ? ">" : "ν");
        uiText.setEscape(false);
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

                table.setVar("p");
                ELContext elContext = context.getELContext();
                table.setValueExpression("value", factory.createValueExpression(
                        elContext, "#{customDataTable.list}", Object.class));
                HtmlColumn c1 = new HtmlColumn();
                HtmlCommandLink l = new HtmlCommandLink();
                MethodExpression expr = factory.createMethodExpression(elContext,
                        "ok", String.class, new Class<?>[] {});
                l.setActionExpression(expr);
                ValueExpression source = factory.createValueExpression(elContext,
                        "#{p}", String.class);
                l.setValueExpression("value", source);
                c1.getChildren().add(l);
                table.getChildren().add(c1);
            }
            return table;
        }
View Full Code Here

    form = new HtmlForm();
    assertNotNull(form);
    form.setId("form");
    facesContext.getViewRoot().getChildren().add(form);
   
    command = new HtmlCommandLink();
    command.setId("command");
    form.getChildren().add(command);
   
    p2d = (UIPaint2D) application.createComponent(UIPaint2D.COMPONENT_TYPE);
    assertNotNull(p2d);
View Full Code Here

        super.setUp();

        form = new HtmlForm();
        facesContext.getViewRoot().getChildren().add(form);

        command = new HtmlCommandLink();
        command.setId("command");
        form.getChildren().add(command);

        slider = application.createComponent(
                UIInputNumberSlider.COMPONENT_TYPE);
View Full Code Here

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

  super.setProperties(component);

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

    form = new HtmlForm();

    facesContext.getViewRoot().getChildren().add(form);

    command = new HtmlCommandLink();
    command.setId("command");

    form.getChildren().add(command);
    spacer = (UISpacer) application
        .createComponent(HtmlSpacer.COMPONENT_TYPE);
View Full Code Here

    scroller.getFacets().put(last_disabled.getId(), last_disabled);
   
   
    form.getChildren().add(scroller);

    command = new HtmlCommandLink();
    command.setId("command");
    form.getChildren().add(command);

  }
View Full Code Here

    };
    input.setId("input");
    input.getAttributes().put("onchange", "return true;");
    form.getChildren().add(input);

    command = new HtmlCommandLink();
    command.setId("command");

    form.getChildren().add(command);

    tree = (UITree) application.createComponent(UITree.COMPONENT_TYPE);
View Full Code Here

        super.setUp();

        form = new HtmlForm();
        facesContext.getViewRoot().getChildren().add(form);

        command = new HtmlCommandLink();
        command.setId("command");
        form.getChildren().add(command);

        spinner = application.createComponent(
                UIInputNumberSpinner.COMPONENT_TYPE);
View Full Code Here

TOP

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

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.