@Override public String getJavascriptCode(final ComponentParameter compParameter) { final StringBuilder sb = new StringBuilder(); sb.append(super.getJavascriptCode(compParameter)); final AbstractComponentBean rComponent = (AbstractComponentBean) compParameter.componentBean.getAttribute("__componentBean"); IComponentJavascriptRender jsRender = null; if (rComponent instanceof TreeBean) { jsRender = (IComponentJavascriptRender) AbstractComponentRegistry.getRegistry(TreeRegistry.tree).getComponentRender(); } else if (rComponent instanceof ListboxBean) { jsRender = (IComponentJavascriptRender) AbstractComponentRegistry.getRegistry(ListboxRegistry.listbox).getComponentRender(); } if (jsRender != null) { sb.append(jsRender.getJavascriptCode(ComponentParameter.get(compParameter, rComponent))); } return sb.toString(); }
public static ComponentParameter getComponentParameter( final HttpServletRequest request, final HttpServletResponse response) { return ComponentParameter.get(request, response, BEAN_ID); }
public static ComponentParameter getComponentParameter( final PageRequestResponse requestResponse) { return ComponentParameter.get(requestResponse, BEAN_ID); }
public static ComponentParameter getComponentParameter( final HttpServletRequest request, final HttpServletResponse response) { return ComponentParameter.get(request, response, messageWindowId); }
public static ComponentParameter getComponentParameter( final PageRequestResponse requestResponse) { return ComponentParameter.get(requestResponse, messageWindowId); }