Hi, Your question is not very clear to me. why do you want to replace ftl with jsp or html. Freemarker is just a templating engine like many others that exist out there including jsp. You do not replace free marker with HTML you just remove any freemarker tags (i.e. anything that starts with <#...> and you've got HTML. However you lose the ability to code variables into your HTML which is the main purpose why a templating language exists.
Perhaps if you clarify exactly what you want with an example then we can help more Taher Alkhateeb On Friday, 29 January 2016, hoboy2 <jean....@novitek.dk> wrote: > Thanks guys. > I will like to add little more to what my colleague has written. > The issue is that we will like to create new screen on the current running > ofbiz application, we will like to reused the services we have witch are > groovy and java. > For the new screen we will like to use html instead of ftl. > Can jsp or something else be used ? > > Example: > > bellow is a portion of fetch_category_sector.ftl. > > ------------------------------------------------------------------------------------------------------ > fetch_category_sector.ftl > > <div class="${request.getAttribute("attributeClass")!}<#if className?exists > && className?has_content> ${className}</#if>"> > <div class="displayBox"> > > Category Selection > > <form method="post"> > <div id="alllists"> > <#list allCategories as cat> > <div id="${cat.categoryName}"> > <button class="selected" > formaction="<@ofbizUrl>main</@ofbizUrl>" > type="submit">${cat.categoryName}</button> > <#list allSectors as sec> > <#if sec.primaryParentOrgCategoryId == > cat.organizationCategoryId> > <a formaction="<@ofbizUrl>main</@ofbizUrl>" > type="submit">${sec.sectorName} > </#if> > </#list> > </div> > </#list> > </div> > </form>n > </div> > </div> > > ------------------------------------------------------------------------------------- > The screen > > <screen name="testscreen"> > <section> > <actions> > <set field="pageClassIdentifier" value="testscreen" /> > <property-map resource="OSafeUiLabels" > map-name="uiLabelMap" > global="true" /> > <set field="pageTitle" value="A Test Screen" /> > <set field="title" from-field="pageTitle" /> > <set field="fieldLevelErrors" > value="${groovy:if(request.getAttribute('setFieldLevelErrors') == > 'N')return > '' else return 'Y';}" /> > <script > > location="component://osafe/webapp/osafe/WEB-INF/actions/custom/fetch_category_sector.groovy" > /> > </actions> > <widgets> > <decorator-screen > name="${parameters.eCommerceDecoratorName}" > location="${parameters.eCommerceDecoratorLocation}"> > <decorator-section name="title"> > <include-screen name="pageTitle" > location="component://osafe/widget/EcommerceScreens.xml"/> > </decorator-section> > <decorator-section name="body"> > <section> > <widgets> > <platform-specific> > <html> > <html-template > > location="component://osafe/webapp/osafe/common/entry/custom/fetch_category_sector.ftl"/> > </html> > </platform-specific> > </widgets> > </section> > </decorator-section> > </decorator-screen> > </widgets> > </section> > </screen> > > ------------------------------------------------------------------------------------------------- > > The question is can I code fetch_category_sector.ftl in html ? > and use it in the testscreen ? > > Thanks > > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Replace-ftl-with-html-in-ofbiz-tp4676594p4676620.html > Sent from the OFBiz - User mailing list archive at Nabble.com. >