04-07-2008 11:07 AM
@Override
public void encodeChildren(FacesContext context) throws IOException
{
if (!isRendered()) return;
// there should be 3 children, the modelist, the actions
// and the plugin, get them individually and render
if (getChildren().size() == 4)
{
ResponseWriter out = context.getResponseWriter();
out.write("<table border='0' cellpadding='6' cellspacing='0' width='100%'><tr><td>");
// render the list
UIModeList modeList = (UIModeList)getChildren().get(0);
Utils.encodeRecursive(context, modeList);
out.write("</td><td align='right'>");
// render the actions
UIActions actions = (UIActions)getChildren().get(1);
Utils.encodeRecursive(context, actions);
out.write("</td></tr></table>");
// render the end of the header panel
String cxPath = context.getExternalContext().getRequestContextPath();
out.write("</td><td style=\"background-image: url(");
out.write(cxPath);
out.write("/images/parts/sidebar_top_grey_end.gif)\" width=5 align=right valign=top>" +
"<img src=\"");
out.write(cxPath);
out.write("/images/parts/sidebar_grey_03.gif\" width=5 height=5></td></tr>" +
"<tr><td colspan='3'>");
// render the plugin
out.write("<div id=\"pluginBox\">");
UIComponent plugin = (UIComponent)getChildren().get(2);
Utils.encodeRecursive(context, plugin);
out.write("</div>");
}
}
// render the plugin
out.write("<div id=\"pluginBox\">");
UIComponent plugin = (UIComponent)getChildren().get(2);
Utils.encodeRecursive(context, plugin);
out.write("</div>");
which generates the content of the sidebar ("navigator", "panel" or "opensearch"). But I don't see in the code where is added the compoenent "plugin" in the list ("(UIComponent)getChildren()"). I just need to know where to add other elements in this list to realize my customization. Does anybody knows where in the code is added the plugin?04-09-2008 04:07 AM
04-09-2008 05:53 AM
04-09-2008 09:12 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.