Examples of HtmlCommandLink


Examples of javax.faces.component.html.HtmlCommandLink

     * Constructor
     */
    public HtmlTree()
    {
        setRendererType(DEFAULT_RENDERER_TYPE);
        _expandControl = new HtmlCommandLink();
        _expandControl.setParent(this);
        _clientSideToggle = Boolean.TRUE;
        _preserveToggle = Boolean.TRUE;
        _showRootNode = Boolean.TRUE;
        _showNav = Boolean.TRUE;
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

            if (cStyle != null)
            {
                writer.writeAttribute("style", cStyle, null);
            }

            HtmlCommandLink link = getLink(facesContext, scroller, Integer.toString(idx), idx);
            link.encodeBegin(facesContext);
            link.encodeChildren(facesContext);
            link.encodeEnd(facesContext);

            writer.endElement("td");
        }

        writer.endElement("tr");
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

                                      int pageIndex)
    {
        String id = PAGE_NAVIGATION + Integer.toString(pageIndex);
        Application application = facesContext.getApplication();

        HtmlCommandLink link =
            (HtmlCommandLink)application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
        link.setId(scroller.getId() + id);
        link.setTransient(true);
        UIParameter parameter
            = (UIParameter)application.createComponent(UIParameter.COMPONENT_TYPE);
        parameter.setId(scroller.getId() + id + "_param");
        parameter.setTransient(true);
        parameter.setName(scroller.getClientId(facesContext));
        parameter.setValue(id);
        List children = link.getChildren();
        children.add(parameter);
        if (text != null)
        {
            HtmlOutputText uiText =
                (HtmlOutputText)application.createComponent(HtmlOutputText.COMPONENT_TYPE);
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

                                      UIComponent facetComp,
                                      String facetName)
    {
        Application application = facesContext.getApplication();

        HtmlCommandLink link
                = (HtmlCommandLink)application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
        link.setId(scroller.getId() + facetName);
        link.setTransient(true);
        UIParameter parameter
                = (UIParameter)application.createComponent(UIParameter.COMPONENT_TYPE);
        parameter.setId(scroller.getId() + facetName + "_param");
        parameter.setTransient(true);
        parameter.setName(scroller.getClientId(facesContext));
        parameter.setValue(facetName);
        List children = link.getChildren();
        children.add(parameter);
        if (facetComp != null)
            children.add(facetComp);
        // dirty, cause facet-comp is now child from link & scroller!
        scroller.getChildren().add(link);
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

            throws IOException
    {
        Converter converter = getConverter(component);

        Application application = facesContext.getApplication();
        HtmlCommandLink link
                = (HtmlCommandLink)application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
        link.setId(component.getId() + "_" + valueForLink.getTime() + "_link");
        link.setTransient(true);
        link.setImmediate(component.isImmediate());

        HtmlOutputText text
                = (HtmlOutputText)application.createComponent(HtmlOutputText.COMPONENT_TYPE);
        text.setValue(content);
        text.setId(component.getId() + "_" + valueForLink.getTime() + "_text");
        text.setTransient(true);

        UIParameter parameter
                = (UIParameter)application.createComponent(UIParameter.COMPONENT_TYPE);
        parameter.setId(component.getId() + "_" + valueForLink.getTime() + "_param");
        parameter.setTransient(true);
        parameter.setName(component.getClientId(facesContext));
        parameter.setValue(converter.getAsString(facesContext, component, valueForLink));

        component.getChildren().add(link);
        link.getChildren().add(parameter);
        link.getChildren().add(text);

        RendererUtils.renderChild(facesContext, link);
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

     * Constructor
     */
    public HtmlTree()
    {
        setRendererType(DEFAULT_RENDERER_TYPE);
        _expandControl = new HtmlCommandLink();
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

    {
        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.HtmlCommandLink

    }

    @Override
    protected UIComponent createComponentToTest()
    {
        UIComponent component = new HtmlCommandLink();
        UIComponent form = new HtmlForm();
        form.getChildren().add(component);
        facesContext.getViewRoot().getChildren().add(form);
        return component;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

    }

    @NotNull
    public static HtmlCommandLink addCommandLink(@NotNull
    UIComponent parent, FacesComponentIdFactory idFactory) {
        HtmlCommandLink link = FacesComponentUtility.createComponent(HtmlCommandLink.class, idFactory);
        parent.getChildren().add(link);
        return link;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlCommandLink

            if (!dirname.equals(oldDirname)) {
                FacesComponentUtility.addOutputText(panelLeft, idFactory, dirname, "");
                oldDirname = dirname;
            }
            UIPanel nextPath = FacesComponentUtility.addBlockPanel(panelLeft, idFactory, "");
            HtmlCommandLink link = FacesComponentUtility.addCommandLink(nextPath, idFactory);
            FacesComponentUtility.addOutputText(link, idFactory, "", "");
            FacesComponentUtility.addOutputText(link, idFactory, basename, "");
            FacesComponentUtility.addParameter(link, idFactory, "path", s);
            FacesComponentUtility.addParameter(link, idFactory, "whichRaw", Integer.toString(rawCount++));
            FacesComponentUtility.addParameter(link, idFactory, "showRaw", Boolean.TRUE.toString());
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.