Examples of AjaxAction


Examples of org.springmodules.xt.ajax.AjaxAction

    public ShowElementTest(String testName) {
        super(testName);
    }

    public void testRender() throws Exception {
        AjaxAction action = new ShowElement("testId");
       
        String result = action.render();
       
        System.out.println(result);
    }
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

    public HideElementTest(String testName) {
        super(testName);
    }

    public void testRender() throws Exception {
        AjaxAction action = new HideElement("testId");
       
        String result = action.render();
       
        System.out.println(result);
    }
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

    public ReplaceContentActionTest(String testName) {
        super(testName);
    }
   
    public void testRender() throws Exception {
        AjaxAction action = new ReplaceContentAction("testId", new SimpleText("Test Component"));
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("Test Component", "/replace-children/content", result);
        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithWildcardMatcher() throws Exception {
        ElementMatcher matcher = new WildcardMatcher("testId");
        AjaxAction action = new ReplaceContentAction(matcher, new SimpleText("Test Component"));
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("Test Component", "/replace-children", result);
        assertXpathEvaluatesTo("wildcard", "/replace-children/context/matcher/@matchMode", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithListMatcher() throws Exception {
        ElementMatcher matcher = new ListMatcher(Arrays.asList("testId1", "testId2"));
        AjaxAction action = new ReplaceContentAction(matcher, new SimpleText("Test Component"));
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("Test Component", "/replace-children", result);
        assertXpathEvaluatesTo("plain", "/replace-children/context/matcher/@matchMode", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId1,testId2", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithSelectorMatcher() throws Exception {
        ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
        AjaxAction action = new ReplaceContentAction(matcher, new SimpleText("Test Component"));
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("Test Component", "/replace-children", result);
        assertXpathEvaluatesTo("selector", "/replace-children/context/matcher/@matchMode", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

    public RemoveContentActionTest(String testName) {
        super(testName);
    }

    public void testRender() throws Exception {
        AjaxAction action = new RemoveContentAction("testId");
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
    }
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithWildcardMatcher() throws Exception {
        ElementMatcher matcher = new WildcardMatcher("testId");
        AjaxAction action = new RemoveContentAction(matcher);
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("wildcard", "/replace-children/context/matcher/@matchMode", result);
        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithListMatcher() throws Exception {
        ElementMatcher matcher = new ListMatcher(Arrays.asList("testId1", "testId2"));
        AjaxAction action = new RemoveContentAction(matcher);
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("plain", "/replace-children/context/matcher/@matchMode", result);
        assertXpathEvaluatesTo("testId1,testId2", "/replace-children/context/matcher/@contextNodeID", result);
View Full Code Here

Examples of org.springmodules.xt.ajax.AjaxAction

        assertXpathEvaluatesTo("testId1,testId2", "/replace-children/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithSelectorMatcher() throws Exception {
        ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
        AjaxAction action = new RemoveContentAction(matcher);
       
        String result = action.render();
       
        System.out.println(result);
       
        assertXpathEvaluatesTo("selector", "/replace-children/context/matcher/@matchMode", result);
        assertXpathEvaluatesTo("#testId1,#testId2", "/replace-children/context/matcher/@contextNodeSelector", result);
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.