Package org.richfaces.deployment

Examples of org.richfaces.deployment.CoreDeployment.addMavenDependency()


       
        FaceletAsset p = new FaceletAsset();
        p.body("<script>document.title = 'waiting-for-message'; RichFaces.Push.logLevel = \"debug\";</script>");
        p.body("<a4j:push address=\"" + Commons.TOPIC + "\" ondataavailable=\"console.log('a4j:push message: ' + event.rf.data); document.title = 'message-received: ' + event.rf.data\" />");

        deployment.addMavenDependency(
                "org.atmosphere:atmosphere-runtime");

        deployment.archive().addAsWebResource(p, "index.xhtml");

        return deployment;
View Full Code Here


        FaceletAsset p = new FaceletAsset();
        p.body("<script>document.title = 'waiting-for-message';</script>");
        p.body("<a4j:push address=\"" + TOPIC + "\" ondataavailable=\"console.log('a4j:push message: ' + event.rf.data); document.title = 'message-received: ' + event.rf.data;\" />");
        p.form("<a4j:commandButton id=\"sendMessage\" value=\"send message\" action=\"#{pushBean.sendMessage}\" />");

        deployment.addMavenDependency(
            "org.atmosphere:atmosphere-runtime");
        deployment.archive().addClass(PushBean.class);

        deployment.archive().addAsWebResource(p, "index.xhtml");
View Full Code Here

    public static WebArchive deployment() {
        CoreDeployment deployment = new CoreDeployment(ITPartialResponseEnding.class);
        deployment.withA4jComponents();
       
        addIndexPage(deployment);
        deployment.addMavenDependency("org.omnifaces:omnifaces:1.3");

        return deployment.getFinalArchive().addClass(SimpleBean.class);
    }
   
    @Test
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.