You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "BJ Freeman (JIRA)" <ji...@apache.org> on 2008/09/28 19:41:44 UTC

[jira] Issue Comment Edited: (OFBIZ-1975) Could you show me example witch creates presentation layer with freemarker template language

    [ https://issues.apache.org/jira/browse/OFBIZ-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635242#action_12635242 ] 

bjfreeman edited comment on OFBIZ-1975 at 9/28/08 10:39 AM:
-------------------------------------------------------------

Usually these should be ask in the User ML>
unless you start with just the framework and build you own application you can not get away for XML entirely.
you have the controller
given you willing to use the controller
you then write code to handle the type of presentation layer you want.
look in the common-controller  for 
       <handler name="handlername" type="view" class="org.ofbiz.webapp.view.handlerjavacodename"/>
here is one for to handle the ftl
    <handler name="ftl" type="view" class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>   
then in the view
   <view-map name="LookupLocales" type="handlername" page="component://appname/folder for your presentation/yourspecificfileforpresentatino#specifcname"/>




      was (Author: bjfreeman):
    Usually these should be ask in the User ML>
unless you start with just the framework and build you own application you can not get away for XML entirely.
you have the controller
given you willing to use the controller
you then write code to handle the type of presentation layer you want.
look in the common-controller  for 
       <handler name="handlername" type="view" class="org.ofbiz.webapp.view.handlerjavacodename"/>
here is one for to handle the ftl
    <handler name="ftl" type="view" class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>   
then in the view
   <view-map name="LookupLocales" type="handlername" page="component://common/widget/LookupScreens.xml#LookupLocales"/>



  
> Could you show me example witch creates presentation layer with freemarker template language
> --------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1975
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1975
>             Project: OFBiz
>          Issue Type: Question
>            Reporter: Jose Mouriho
>
> Hello 
> I want to ask about some ofbiz example application witch has presentation layer created with freemarker template language or 
> by some other technique ( without xml definition of  presentation layer interface) 
> I am interested how to connect service defined by java and the freemarker template .
> If there is some other way for developing presentation layer please share with me 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.