Examples of FaceletAsset


Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPlaceholderInputText.class);

        deployment.archive().addClasses(PlaceHolderValueConverter.class, PlaceHolderValue.class);

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<rich:inplaceInput id='input' >");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</rich:inplaceInput>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<rich:inplaceInput id='input' />");
        p.body("<h:inputText id='second-input' />");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<rich:inplaceInput id='input' defaultLabel='#{not empty param.defaultLabel ? param.defaultLabel : null}' >");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</rich:inplaceInput>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<rich:inplaceInput id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</rich:inplaceInput>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<rich:inplaceInput id='input' value='#{placeHolderValue.value2}' >");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</rich:inplaceInput>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value2}' />");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    protected String getTestedValueResponse() {
        return TESTED_VALUE;
    }

    protected static FaceletAsset placeholderFacelet(String name, RichDeployment deployment) {
        FaceletAsset p;
        p = deployment.baseFacelet(name);
        p.head("<style> input, textarea { color: #000; } </style>");
        p.body("<input type='button' value='blur' id='blurButton'/>");
        p.body("<br />");
        return p;
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPlaceholderSelect.class);

        deployment.archive().addClasses(PlaceHolderValueConverter.class, PlaceHolderValue.class);

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<rich:select id='input' enableManualInput='true'>");
        p.body("    <f:selectItems value='#{placeHolderValue.items}' />");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</rich:select>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<rich:select id='input' />");
        p.body("<rich:placeholder id='placeholderID' value='Placeholder Text' selector='[id=input]' />");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<rich:select id='input'>");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</rich:select>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<rich:select id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</rich:select>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<rich:select id='input' value='#{placeHolderValue.value2}' enableManualInput='true' >");
        p.form("    <f:selectItems value='#{placeHolderValue.items}' />");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</rich:select>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value2}' />");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPlaceholderInputText.class);

        deployment.archive().addClasses(PlaceHolderValueConverter.class, PlaceHolderValue.class);

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<rich:inplaceSelect id='input'>");
        p.body("    <f:selectItems value='#{placeHolderValue.items}' />");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</rich:inplaceSelect>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<rich:inplaceSelect id='input' />");
        p.body("<rich:placeholder id='placeholderID' value='Placeholder Text' selector='[id=input]' />");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<rich:inplaceSelect id='input' defaultLabel='#{not empty param.defaultLabel ? param.defaultLabel : null}' >");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</rich:inplaceSelect>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<rich:inplaceSelect id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</rich:inplaceSelect>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<rich:inplaceSelect id='input' value='#{placeHolderValue.value2}' >");
        p.form("    <f:selectItems value='#{placeHolderValue.items}' />");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</rich:inplaceSelect>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value2}' />");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

                        .paramValue("SystemTest")
                    .up();
            }
        });

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<h:inputText id='input' >");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</h:inputText>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<h:panelGroup id='panel'>");
        p.body("<h:inputText id='input' />");
        p.body("<rich:placeholder id='placeholderID' value='Placeholder Text' selector='[id=input]' />");
        p.body("</h:panelGroup>");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<h:inputText id='input' >");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</h:inputText>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<h:inputText id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</h:inputText>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<h:inputText id='input' value='#{placeHolderValue.value2}' >");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</h:inputText>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value2}' />");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPlaceholderAutocomplete.class);

        deployment.archive().addClasses(PlaceHolderValueConverter.class, PlaceHolderValue.class);

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<rich:autocomplete id='input'>");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</rich:autocomplete>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<rich:autocomplete id='input' />");
        p.body("<rich:placeholder id='placeholderID' value='Placeholder Text' selector='[id=input]' />");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<rich:autocomplete id='input'>");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</rich:autocomplete>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<rich:autocomplete id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</rich:autocomplete>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<rich:autocomplete id='input' value='#{placeHolderValue.value2}' >");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</rich:autocomplete>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value2}' />");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    public static WebArchive createDeployment() {
        RichDeployment deployment = new RichDeployment(ITPlaceholderCalendar.class);

        deployment.archive().addClasses(PlaceHolderValueConverter.class, PlaceHolderValue.class);

        FaceletAsset p;
        p = placeholderFacelet("index.xhtml", deployment);
        p.body("<rich:calendar id='input' enableManualInput='true' datePattern='MMM d, yyyy' timezone='UTC' >");
        p.body("    <rich:placeholder id='placeholderID' styleClass='#{param.styleClass}' value='Placeholder Text' />");
        p.body("</rich:calendar>");

        p = placeholderFacelet("selector.xhtml", deployment);
        p.body("<rich:calendar id='input' />");
        p.body("<rich:placeholder id='placeholderID' value='Placeholder Text' selector='[id=input]' />");

        p = placeholderFacelet("rendered.xhtml", deployment);
        p.body("<rich:calendar id='input' >");
        p.body("    <rich:placeholder id='placeholderID' value='Placeholder Text' rendered='false' />");
        p.body("</rich:calendar>");

        p = placeholderFacelet("converter.xhtml", deployment);
        p.body("<rich:calendar id='input' >");
        p.body("    <rich:placeholder id='placeholderID' converter='placeHolderValueConverter' value='#{placeHolderValue}' />");
        p.body("</rich:calendar>");

        p = placeholderFacelet("submit.xhtml", deployment);
        p.form("<rich:calendar id='input' value='#{placeHolderValue.value3}' enableManualInput='true' datePattern='MMM d, yyyy' timeZone='#{placeHolderValue.timeZone}' >");
        p.form("    <rich:placeholder id='placeholderID' value='Placeholder Text' />");
        p.form("</rich:calendar>");
        p.form("<br />");
        p.form("<a4j:commandButton id='ajaxSubmit' value='ajax submit' execute='@form' render='output' />");
        p.form("<h:commandButton id='httpSubmit' value='http submit' />");
        p.form("<br />");
        p.form("<h:outputText id='output' value='#{placeHolderValue.value3}' >");
        p.form("    <f:convertDateTime timeZone='UTC' pattern='EEE MMM dd HH:mm:ss z yyyy'/>");
        p.form("</h:outputText>");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    @Deployment
    public static WebArchive createDeployment() {
        RegionTestDeployment deployment = new RegionTestDeployment(ITExecuteRichAjax.class);

        FaceletAsset page = deployment.baseFacelet("index.xhtml");
        page.form("<h:commandButton id='button'>");
        page.form("    <a4j:ajax execute='#{regionBean.execute}' />");
        page.form("</h:commandButton>");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

    @Deployment
    public static WebArchive createDeployment() {
        RegionTestDeployment deployment = new RegionTestDeployment(ITRegionJSFAjax.class);

        FaceletAsset page = deployment.baseFacelet("index.xhtml");
        page.form("<a4j:region>");
        page.form("    <h:commandButton id='button'>");
        page.form("        <f:ajax execute='#{regionBean.execute}' />");
        page.form("    </h:commandButton>");
        page.form("</a4j:region>");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.shrinkwrap.descriptor.FaceletAsset

        assertEquals("2", items.get(1).getText());
        assertEquals("3", items.get(2).getText());
    }

    private static void addIndexPage(A4JDeployment deployment) {
        FaceletAsset p = new FaceletAsset();

        p.body("<ul id='list'>");
        p.body("<a4j:repeat id='list' var='item' value='#{collectionModelBean.collection}'>");
        p.body("    <li>#{item}</li>");
        p.body("</a4j:repeat>");
        p.body("</ul>");

        deployment.archive().addAsWebResource(p, "index.xhtml");
    }
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.