예제 #1
0
 @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();
 }
예제 #2
0
 public static ComponentParameter getComponentParameter(
     final HttpServletRequest request, final HttpServletResponse response) {
   return ComponentParameter.get(request, response, BEAN_ID);
 }
예제 #3
0
 public static ComponentParameter getComponentParameter(
     final PageRequestResponse requestResponse) {
   return ComponentParameter.get(requestResponse, BEAN_ID);
 }
예제 #4
0
 public static ComponentParameter getComponentParameter(
     final HttpServletRequest request, final HttpServletResponse response) {
   return ComponentParameter.get(request, response, messageWindowId);
 }
예제 #5
0
 public static ComponentParameter getComponentParameter(
     final PageRequestResponse requestResponse) {
   return ComponentParameter.get(requestResponse, messageWindowId);
 }