@Override public void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException { if(getComponentConfiguration().getRenderPath() == null || "".equals(getComponentConfiguration().getRenderPath())) { // set default builtin template. This is hardcoded. The freemarker templates are relative to the current package name String xtype = getComponentConfiguration().getXType(); if ("HST.UnorderedList".equalsIgnoreCase(xtype)) { response.setRenderPath("classpath:ul.ftl"); } else if ("HST.OrderedList".equalsIgnoreCase(xtype)) { response.setRenderPath("classpath:ol.ftl"); } else if ("HST.Span".equalsIgnoreCase(xtype)) { response.setRenderPath("classpath:span.ftl"); } else if ("HST.vBox".equalsIgnoreCase(xtype)) { response.setRenderPath("classpath:vbox.ftl"); } else if ("HST.NoMarkup".equalsIgnoreCase(xtype)) { response.setRenderPath("classpath:nomarkup.ftl"); } else { response.setRenderPath("classpath:vbox.ftl"); } } super.doBeforeRender(request, response); }