Package org.springmodules.xt.test.ajax

Source Code of org.springmodules.xt.test.ajax.DummyHandler

package org.springmodules.xt.test.ajax;

import org.springmodules.xt.ajax.AbstractAjaxHandler;
import org.springmodules.xt.ajax.AjaxActionEvent;
import org.springmodules.xt.ajax.AjaxResponse;
import org.springmodules.xt.ajax.component.SimpleText;
import org.springmodules.xt.ajax.action.AppendContentAction;
import org.springmodules.xt.ajax.AjaxResponseImpl;

/**
*
* @author Sergio Bossa
*/
public class DummyHandler extends AbstractAjaxHandler {
   
    public AjaxResponse action(AjaxActionEvent e) {
        AjaxResponseImpl response = new AjaxResponseImpl();
        AppendContentAction action = new AppendContentAction("action", new SimpleText("action"));
        response.addAction(action);
        return response;
    }
   
    public AjaxResponse actionWithException(AjaxActionEvent e) throws Exception {
        throw new Exception();
    }
}
TOP

Related Classes of org.springmodules.xt.test.ajax.DummyHandler

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.