if (windowStateValue != null)
{
windowState = org.gatein.pc.api.WindowState.create(windowStateValue.trim());
}
PortletURLRenderer renderer = new PortletURLRenderer(
renderResponse.getPageNavigationalState(),
context.getClientRequest(),
context.getClientResponse(),
context.getPageNavigationalStateSerialization());
final org.gatein.pc.api.WindowState ws = windowState;
final org.gatein.pc.api.Mode md = mode;
RenderURL url = new RenderURL()
{
public StateString getNavigationalState()
{
return null;
}
public Map<String, String[]> getPublicNavigationalStateChanges()
{
return params;
}
public Mode getMode()
{
return md;
}
public org.gatein.pc.api.WindowState getWindowState()
{
return ws;
}
public Map<String, String> getProperties()
{
return Collections.emptyMap();
}
};
try
{
JspWriter out = pageContext.getOut();
String renderedURL = renderer.renderURL(portletTag.result.getWindowDef().getWindowId(), url, new URLFormat(null, null, true, null));
out.write(renderedURL);
}
catch (IOException e)
{
throw new JspException(e);