// that a component from a page different than
// the response page will render.
// In 1.0.6, we start to record *both* the render page
// and the component page (if different).
IPage activePage = _requestCycle.getPage();
IPage componentPage = component.getPage();
Map parameters = new HashMap();
boolean stateful = _request.getSession(false) != null;
parameters.put(ServiceConstants.PAGE, activePage.getPageName());
parameters.put(ServiceConstants.COMPONENT, component.getIdPath());
parameters.put(ServiceConstants.CONTAINER, componentPage == activePage ? null
: componentPage.getPageName());
parameters.put(ServiceConstants.SESSION, stateful ? "T" : null);
if (dsp.getUpdateParts() != null && dsp.getUpdateParts().length > 0)
parameters.put(ServiceConstants.UPDATE_PARTS, dsp.getUpdateParts());
if (dsp.isJSON())
parameters.put("json", String.valueOf(dsp.isJSON()));