Hi,
Incorporation of a html file in a screen, like in:
{code}
<screen name="newcustomer">
<section>
<actions>
<set field="titleProperty" value="PageTitleNewCustomer"/>
<script location=
"component://myshop/src/org/apache/ofbiz/ecommerce/customer/NewCustomer.groovy"
/>
<set field="dependentForm" value="newuserform"/>
<set field="paramKey" value="countryGeoId"/>
<set field="mainId" value="countryGeoId"/>
<set field="dependentId" value="stateProvinceGeoId"/>
<set field="requestName" value="getAssociatedStateList"/>
<set field="responseName" value="stateList"/>
<set field="dependentKeyName" value="geoId"/>
<set field="descName" value="geoName"/>
<set field="selectedDependentOption" default-value="_none_"
/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location=
"${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html>
<html-template location=
"component://common/webcommon/includes/setDependentDropdownValuesJs.ftl"/>
<html-template location=
"component://myshop/templates/customer/newcustomer.ftl"/>
*<html-template
location="component://myshop/templates/customer/newcustomer.html"/>*
</html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
{code}
renders the following result:
{code}
ERROR in error page, (infinite loop or error page not found with name
[/error/error.jsp]), but here is the text just in case it helps you:
org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
[component://myshop/widget/CustomerScreens.xml#newcustomer]:
org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
[component://myshop/widget/CommonScreens.xml#main-decorator]:
java.lang.IllegalArgumentException: Rendering not yet supported for the
template at location:
component://myshop/templates/customer/newcustomer.html (Rendering not yet
supported for the template at location:
component://myshop/templates/customer/newcustomer.html) (Error rendering
screen [component://myshop/widget/CommonScreens.xml#main-decorator]:
java.lang.IllegalArgumentException: Rendering not yet supported for the
template at location:
component://myshop/templates/customer/newcustomer.html (Rendering not yet
supported for the template at location:
component://myshop/templates/customer/newcustomer.html))
{code}
So, to answer your question completely: it is currently *not* supported.
Feel free to file a JIRA issue pertaining this matter.
Best regards,
Pierre Smits
ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services
OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/
On Thu, Jan 28, 2016 at 4:21 PM, Julien NICOLAS <[email protected]>
wrote:
> Hi Jean-Luc,
>
> What is really your need. We need the background of your think and
> understand the reason of your question to find a way to help you.
>
> For example, if you don't want to parse ftl file, you can use <#noparse>
> </#noparse>
>
> http://freemarker.incubator.apache.org/docs/ref_directive_noparse.html
>
> Julien.
>
> Le 28/01/2016 15:48, hoboy2 a écrit :
>
>> Hi
>>
>> Ok I have partially asked this question before.
>> I have looked into ofbiz doc I can not find an example
>> of where to use html instead of ftl.
>> I will like to use html instead of ftl
>> any link ?
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://ofbiz.135035.n4.nabble.com/Replace-ftl-with-html-in-ofbiz-tp4676594.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>
>