Example #1
0
 public Render getDefaultRender(String view) {
   ViewType viewType = constants.getViewType();
   if (viewType == ViewType.FREE_MARKER) {
     return new FreeMarkerRender(view + constants.getFreeMarkerViewExtension());
   } else if (viewType == ViewType.JSP) {
     return new JspRender(view + constants.getJspViewExtension());
   } else if (viewType == ViewType.VELOCITY) {
     return new VelocityRender(view + constants.getVelocityViewExtension());
   } else {
     return mainRenderFactory.getRender(view + mainRenderFactory.getViewExtension());
   }
 }
Example #2
0
 /** Return Render by default ViewType which config in JFinalConfig */
 public Render getRender(String view) {
   return mainRenderFactory.getRender(view);
 }