All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.plugins.html.action.ChangeContext Maven / Gradle / Ivy

package org.nakedobjects.plugins.html.action;

import org.nakedobjects.plugins.html.component.Page;
import org.nakedobjects.plugins.html.context.Context;
import org.nakedobjects.plugins.html.request.Request;



public class ChangeContext implements Action {

    public void execute(final Request request, final Context context, final Page page) {
        final int id = Integer.valueOf(request.getObjectId()).intValue();
        request.forward(context.changeContext(id));
    }

    public String name() {
        return "context";
    }

}

// Copyright (c) Naked Objects Group Ltd.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy