Package org.springmodules.xt.ajax

Examples of org.springmodules.xt.ajax.ElementMatcher


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


        assertXpathEvaluatesTo("plain", "/delete/context/matcher/@matchMode", result);
        assertXpathEvaluatesTo("testId1,testId2", "/delete/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithSelectorMatcher() throws Exception {
        ElementMatcher matcher = new SelectorMatcher(Arrays.asList("#testId1", "#testId2"));
        AjaxAction action = new RemoveElementAction(matcher);
       
        String result = action.render();
       
        System.out.println(result);
View Full Code Here

        assertXpathEvaluatesTo("Test Component", "/replace-children/content", result);
        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);
View Full Code Here

        assertXpathEvaluatesTo("wildcard", "/replace-children/context/matcher/@matchMode", result);
        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);
View Full Code Here

        assertXpathEvaluatesTo("plain", "/replace-children/context/matcher/@matchMode", result);
        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);
View Full Code Here

       
        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);
View Full Code Here

        assertXpathEvaluatesTo("wildcard", "/replace-children/context/matcher/@matchMode", result);
        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);
View Full Code Here

        assertXpathEvaluatesTo("plain", "/replace-children/context/matcher/@matchMode", result);
        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);
View Full Code Here

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

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

TOP

Related Classes of org.springmodules.xt.ajax.ElementMatcher

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.