Examples of ExampleEvent


Examples of org.gatein.portal.samples.ipc.events.ExampleEvent

public class ProducerEventPortlet extends GenericPortlet {

    public void doView(RenderRequest request, RenderResponse response) throws IOException {
        PrintWriter writer = response.getWriter();

        ExampleEvent exampleEvent = (ExampleEvent)request.getAttribute("exampleEvent");
        if (exampleEvent != null) {
            String lastEvent = "<pre>  " + exampleEvent + "</pre>";
            writer.write(lastEvent);
        }
View Full Code Here

Examples of org.gatein.portal.samples.ipc.events.ExampleEvent

    public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException {
        String eventKey = request.getParameter("eventKey");
        String eventValue = request.getParameter("eventValue");

        ExampleEvent exampleEvent = new ExampleEvent();
        exampleEvent.setKey(eventKey);
        exampleEvent.setValue(eventValue);

        request.setAttribute("exampleEvent", exampleEvent);
        response.setEvent(new QName("http://gatein.portal.samples.org", "exampleEvent"), exampleEvent);
    }
View Full Code Here

Examples of org.gatein.portal.samples.ipc.events.ExampleEvent

public class ConsumerEventPortlet extends GenericPortlet {

    public void doView(RenderRequest request, RenderResponse response) throws IOException {
        PrintWriter writer = response.getWriter();

        ExampleEvent exampleEvent = (ExampleEvent)request.getAttribute("exampleEvent");
        if (exampleEvent != null) {
            String lastEvent = "<pre>  " + exampleEvent + "</pre>";
            writer.write(lastEvent);
        }
        writer.close();
View Full Code Here

Examples of org.gatein.portal.samples.ipc.events.ExampleEvent

        }
        writer.close();
    }

    public void processEvent(EventRequest request, EventResponse response) throws PortletException, IOException {
        ExampleEvent exampleEvent = (ExampleEvent)request.getEvent().getValue();
        request.setAttribute("exampleEvent", exampleEvent);
    }
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.