renderInformalParameters(writer, cycle);
renderBody(writer, cycle);
writer.end();
JSONObject obj = DojoUtils.parseJSONParameter(this, "options");
obj.put("title", getTitle());
if (getIcon() != null)
obj.put("iconSrc", getIcon().buildURL());
if (getHref() != null)
obj.put("href", getHref());
obj.put("widgetId", getId());
obj.put("toggle", "fade");
obj.put("constrainToContainer", getConstrainToContainer());
obj.put("displayMaximizeAction", getDisplayMaximizeAction());
obj.put("displayMinimizeAction", getDisplayMinimizeAction());
obj.put("displayCloseAction", getDisplayCloseAction());
obj.put("hasShadow", getHasShadow());
obj.put("resizable", isResizable());
obj.put("taskBarId", getTaskBarId());
//obj.put("persistenceWidgetPosition", getPersistPosition());
//Setup our script includes
Map scriptParms = new HashMap();
scriptParms.put("id", getIdParameter());
scriptParms.put("props", obj.toString());
PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);
getScript().execute(cycle, pageRenderSupport, scriptParms);
}