Re: Replace ftl with html in ofbiz

2016-01-28 Thread Taher Alkhateeb
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  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
>
>  && className?has_content> ${className}">
>   
>
> Category Selection
>
> 
> 
>   <#list allCategories as cat>
>   
>  formaction="<@ofbizUrl>main"
> type="submit">${cat.categoryName}
> <#list allSectors as sec>
>   <#if sec.primaryParentOrgCategoryId ==
> cat.organizationCategoryId>
> main"
> type="submit">${sec.sectorName}
>   
> 
> 
>   
> 
> n
>   
> 
>
> -
> The screen
>
>  
> 
> 
> 
>  map-name="uiLabelMap"
> global="true" />
> 
> 
>  value="${groovy:if(request.getAttribute('setFieldLevelErrors') ==
> 'N')return
> '' else return 'Y';}" />
> 

Fwd: [jira] Subscription: Patch Available in OFBiz

2016-01-28 Thread Pierre Smits
FYI,

Pierre Smits

ORRTIZ.COM 
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

-- Forwarded message --
From: 
Date: Fri, Jan 29, 2016 at 2:01 AM
Subject: [jira] Subscription: Patch Available in OFBiz
To: pierre.sm...@gmail.com


Issue Subscription
Filter: Patch Available in OFBiz (164 issues)
Patch Available issues in OFBiz
Subscriber: pfm.smits

Key Summary
OFBIZ-6843  New theme Rainbow Stone
https://issues.apache.org/jira/browse/OFBIZ-6843
OFBIZ-6841  Remove Facilities.groovy from hhfacility as it isn't being used
https://issues.apache.org/jira/browse/OFBIZ-6841
OFBIZ-6835  relocate .ftl and .groovy files in the
specialpurpose/hhfacility component
https://issues.apache.org/jira/browse/OFBIZ-6835
OFBIZ-6828  relocate .ftl and .groovy files in the specialpurpose/cmssite
component
https://issues.apache.org/jira/browse/OFBIZ-6828
OFBIZ-6825  relocate .ftl and .groovy files in the
specialpurpose/assetmaint component
https://issues.apache.org/jira/browse/OFBIZ-6825
OFBIZ-6812  relocate .ftl and .groovy files in the
specialpurpose/projectmgr component
https://issues.apache.org/jira/browse/OFBIZ-6812
OFBIZ-6811  relocate .ftl and .groovy files in the specialpurpose/ecommerce
component
https://issues.apache.org/jira/browse/OFBIZ-6811
OFBIZ-6793  Have configuration options for the ecommerce component.
https://issues.apache.org/jira/browse/OFBIZ-6793
OFBIZ-6790  Add service blackout period on job mananger
https://issues.apache.org/jira/browse/OFBIZ-6790
OFBIZ-6785  removed contentwrapper methods broke ftl and groovy
https://issues.apache.org/jira/browse/OFBIZ-6785
OFBIZ-6776  Amount to capture for order is in-correct after manual refund
electronic transaction
https://issues.apache.org/jira/browse/OFBIZ-6776
OFBIZ-6738  Enhance PartyTypeAttr with a description field
https://issues.apache.org/jira/browse/OFBIZ-6738
OFBIZ-6711  Have configuration options regarding widgets
https://issues.apache.org/jira/browse/OFBIZ-6711
OFBIZ-6685  changeProductionRunStatus service does not honor the
StatusValidChange
https://issues.apache.org/jira/browse/OFBIZ-6685
OFBIZ-6667  Remove limitation regarding menu-name in ofbiz-component.xsd
https://issues.apache.org/jira/browse/OFBIZ-6667
OFBIZ-6648  Finalizing an ecommerce order with payment via a 3rd party
payment provider requires additional roles
https://issues.apache.org/jira/browse/OFBIZ-6648
OFBIZ-6556  Have the means to create a cmssite component in the hot-deploy
folder
https://issues.apache.org/jira/browse/OFBIZ-6556
OFBIZ-6549  workeffort/control/addTimesheetToInvoice missing workEffort for
call to createTimeEntryInvoiceItemsInline
https://issues.apache.org/jira/browse/OFBIZ-6549
OFBIZ-6510  Replace webtools/control/view/ModelInduceFromDb with widgets
https://issues.apache.org/jira/browse/OFBIZ-6510
OFBIZ-6508  webtools/control/view/ModelInduceFromDb should support

https://issues.apache.org/jira/browse/OFBIZ-6508
OFBIZ-6477  Some XSDs needs to be cleaned-up
https://issues.apache.org/jira/browse/OFBIZ-6477
OFBIZ-6462  Redesign ordermgr/control/EditQuoteRole to resemble
ordermgr/control/requestroles
https://issues.apache.org/jira/browse/OFBIZ-6462
OFBIZ-6455  Bootstrap modal for lookup screens
https://issues.apache.org/jira/browse/OFBIZ-6455
OFBIZ-6452  Bad Lookup Field
https://issues.apache.org/jira/browse/OFBIZ-6452
OFBIZ-6448  Have configuration options regarding
freemarkerImports.properties
https://issues.apache.org/jira/browse/OFBIZ-6448
OFBIZ-6427  Implement FindService record grouping/summarization
functionality
https://issues.apache.org/jira/browse/OFBIZ-6427
OFBIZ-6419  Improve form widget find functionality as a generic reporting
tool to offer more power to the end user
https://issues.apache.org/jira/browse/OFBIZ-6419
OFBIZ-6418  Allow form widget find fields handle ignore-when to control
hiding of result grid/form
https://issues.apache.org/jira/browse/OFBIZ-6418
OFBIZ-6386  compareBigDecimals in
org.ofbiz.minilang.method.conditional.Compare does not compare certain
values correctly
https://issues.apache.org/jira/browse/OFBIZ-6386
OFBIZ-6377  Add WorkEffortAssoc screen
https://issues.apache.org/jira/browse/OFBIZ-6377
OFBIZ-6376  Add WorkEffortFixedAssetAssign.estimatedQuantity
https://issues.apache.org/jira/browse/OFBIZ-6376
OFBIZ-6361  createQuoteItem should display EditQuoteItem page instead of
ListQuoteItems when error occurs like updateQuoteItem controller settings
https://issues.apache.org/jira/browse/OFBIZ-6361
OFBIZ-6360  Form widget rendering broken for EmailServices.java
https:/

Re: Replace ftl with html in ofbiz

2016-01-28 Thread hoboy2
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

 ${className}">
  

Category Selection



  <#list allCategories as cat>
  
main"
type="submit">${cat.categoryName}
<#list allSectors as sec>
  <#if sec.primaryParentOrgCategoryId == cat.organizationCategoryId>
main"
type="submit">${sec.sectorName} 
  


  

n
  

-
The 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.


Multitenancy not working trunk,14.12,15.12

2016-01-28 Thread Ahmad Ludin
Hi,

I am testing the mutitenancy; everything works in 12.04, and 13.07.02; but
not with 14.12,15.12 and trunk on Derby with the ant target:  *ant
create-tenant;*

The process hangs as if it can't read a file  or goes into an infinite loop:

I have followed the steps that Pierre mentioned and they work fine in 12.04
and 13.07 but not after that.

I am on windows 7,
JDK8
Derby as DB

 here is the location it hangs:

 *  |I| Starting container dataload-container*
* [java] 2016-01-29 06:33:20,338 |delegator-startup-1
 |DelegatorFactoryImpl*
* |I| Creating new delegator [default#camp2] (delegator-startup-1)*



*Detailed log below:*






nloads/ofbiz-release15.12/ofbiz-release15.12/applications/content/servicedef/sec
as.xml
 [java] 2016-01-29 06:33:14,026 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [10] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/workeffort/servicedef/
secas.xml
 [java] 2016-01-29 06:33:14,026 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [24] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/product/servicedef/sec
as.xml
 [java] 2016-01-29 06:33:14,042 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [23] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/product/servicedef/sec
as_shipment.xml
 [java] 2016-01-29 06:33:14,042 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [4] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/applications/manufacturing/servicede
f/secas.xml
 [java] 2016-01-29 06:33:14,042 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [22] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/accounting/servicedef/
secas.xml
 [java] 2016-01-29 06:33:14,042 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [8] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/applications/accounting/servicedef/s
ecas_payment.xml
 [java] 2016-01-29 06:33:14,042 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [22] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/accounting/servicedef/
secas_ledger.xml
 [java] 2016-01-29 06:33:14,057 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [6] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/applications/accounting/servicedef/s
ecas_invoice.xml
 [java] 2016-01-29 06:33:14,073 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [76] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/order/servicedef/secas
.xml
 [java] 2016-01-29 06:33:14,073 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [10] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/applications/marketing/servicedef/s
ecas.xml
 [java] 2016-01-29 06:33:14,073 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [0] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/applications/commonext/servicedef/se
cas.xml
 [java] 2016-01-29 06:33:14,073 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [0] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/solr/servicedef/secas
.xml
 [java] 2016-01-29 06:33:14,088 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [5] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/assetmaint/servicedef
/secas.xml
 [java] 2016-01-29 06:33:14,104 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [8] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/scrum/servicedef/seca
s.xml
 [java] 2016-01-29 06:33:14,120 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [12] Service ECA Rules from
file:/C:/Users/Administrator/Dow
nloads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/googlecheckout/servi
cedef/secas.xml
 [java] 2016-01-29 06:33:14,120 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [1] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/ebay/servicedef/secas
.xml
 [java] 2016-01-29 06:33:14,120 |kJoinPool-1-worker-1 |ServiceEcaUtil
 |I| Loaded [4] Service ECA Rules from
file:/C:/Users/Administrator/Down
loads/ofbiz-release15.12/ofbiz-release15.12/specialpurpose/ebaystore/servicedef/
secas.xml
 [java] 2016-01-29 06:33:14,120 |kJoinPool-1-worker-1 |

Re: Replace ftl with html in ofbiz

2016-01-28 Thread Barou
Thanks guys.
I have an ofbiz application running fine using ftl.
 I want to use the same services(it can be groovy or java) of the that
application to use  html instead of ftl
in screen design.
I was hoping for something like what Pierre did.
so maybe my last option is jsp I am right ?
if ftl is not used.

Thanks





--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Replace-ftl-with-html-in-ofbiz-tp4676594p4676603.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Replace ftl with html in ofbiz

2016-01-28 Thread Jacques Le Roux

Le 28/01/2016 17:01, gil portenseigne a écrit :

Indeed like Pierre shows, only *.ftl files are supported.


Simply rename the file extension from html to ftl, is that a big deal?

Jacques



So depending on your need, you can use ftl files...

Gil

On 28/01/2016 16:20, gil portenseigne wrote:











Re: Replace ftl with html in ofbiz

2016-01-28 Thread gil portenseigne

Indeed like Pierre shows, only *.ftl files are supported.

So depending on your need, you can use ftl files...

Gil

On 28/01/2016 16:20, gil portenseigne wrote:



location="component://mycomponent/path/to/my/index.html"/>






Re: Replace ftl with html in ofbiz

2016-01-28 Thread Julien NICOLAS

Sorry but this link is not... linked to this subject ;)

Le 28/01/2016 16:33, Julien NICOLAS a écrit :

...new Jira creation ;)




Re: Replace ftl with html in ofbiz

2016-01-28 Thread Julien NICOLAS
Yes, but it could be interesting to understand the needs of Jean-Luc and 
maybe the solution is in OFBiz and not in the new Jira creation 
;)


Le 28/01/2016 16:29, Pierre Smits a écrit :

Feel free to file a JIRA issue pertaining this matter.




Re: Replace ftl with html in ofbiz

2016-01-28 Thread Pierre Smits
Hi,

Incorporation of a html file in a screen, like in:
{code}

















































**












{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 
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Thu, Jan 28, 2016 at 4:21 PM, Julien NICOLAS 
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>
> 
>
> 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.
>>
>
>


Re: Replace ftl with html in ofbiz

2016-01-28 Thread Julien NICOLAS

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> 



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.




Re: Replace ftl with html in ofbiz

2016-01-28 Thread gil portenseigne

Hello,

In OFBiz ftl files contain html, if you read 
http://freemarker.incubator.apache.org/


You'll see that freemarker improve your html content with loop, 
variables, etc.


If you want to use pure static html, it could be done in screens with 
(not tested but i guess it works):



location="component://mycomponent/path/to/my/index.html"/>



Or be done in ftl files directly.

Regards

Gil


On 28/01/2016 15:48, hoboy2 wrote:

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.




Re: Replace ftl with html in ofbiz

2016-01-28 Thread Nicolas Malin

Hi Can you explain more your problem ?

Because if you set only html code in a ftl file, it's work fine.

Nicolas

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.




Replace ftl with html in ofbiz

2016-01-28 Thread hoboy2
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.


Re: Apache OFBiz & FOSDEM January 30th & 31st January 2016

2016-01-28 Thread Sharan-F
Hi Eric

You can email me using my apache email sha...@apache.org and we can swap
phone details and then organise to meet up.

Thanks
Sharan



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Apache-OFBiz-FOSDEM-January-30th-31st-January-2016-tp4675831p4676582.html
Sent from the OFBiz - User mailing list archive at Nabble.com.