Package org.springmodules.xt.ajax.action.matcher

Examples of org.springmodules.xt.ajax.action.matcher.SelectorMatcher


        assertXpathEvaluatesTo("plain", "/replace/context/matcher/@matchMode", result);
        assertXpathEvaluatesTo("testId1,testId2", "/replace/context/matcher/@contextNodeID", result);
    }
   
    public void testRenderWithSelectorMatcher() throws Exception {
        ElementMatcher matcher = new SelectorMatcher(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


        return response;
    }
   
    public AjaxResponse changeColor(AjaxActionEvent event) {
        // CSS Selector matcher for selecting list item elements descending by the element with changeColorDataRow id:
        SelectorMatcher matcher = new SelectorMatcher(Arrays.asList("#changeColorDataRow li"));
        // Action for changing the style attribute to matching elements:
        SetAttributeAction action = new SetAttributeAction(matcher, "style", "color : red");
       
        // Create a concrete ajax response:
        AjaxResponse response = new AjaxResponseImpl();
View Full Code Here

TOP

Related Classes of org.springmodules.xt.ajax.action.matcher.SelectorMatcher

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.