Re: Freemarker auto-escaping

2021-09-08 Thread Gil Portenseigne
Hello, 

I used to define `<#ftl output_format="XML">` on top of ftl files for
this purpose.

But having this on file extension looks nice to me.

Thanks Jacques for the head up.

Gil

On Wed, Sep 08, 2021 at 02:59:27PM +0200, Jacques Le Roux wrote:
> Hi,
> 
> Long ago we opened https://issues.apache.org/jira/browse/OFBIZ-7675 for that
> 
> Few days ago Dániel Dékány (VP and main contributor to Apache Freemarker 
> project) wrote at FREEMARKER-189 (https://s.apache.org/fitxs):
> 
>< the Manual). [...] Then people can't accidentally forget adding them>>
> 
> I was reluctant do use all auto-escaping features. But I believe we should
> follow Forrest Rae
> 's
> suggestion at OFBIZ-7041 
> that we turn Freemarker autoescaping on. Quoting him there:
> 
>< formats. The <#escape> directive has been deprecated. Notice the comment at 
> the
>very end of this page:
>"FreeMarker automatically escapes all values printed ... if it's properly 
> configured (that's the responsibility of the programmers; see here how
>)."
>Would be good to turn autoescaping on, and set the configuration to match 
> .ftl as HTML and .fo.ftl as XML.>>
> 
> I mean the last part of Forrest Rae 
> 's 
> proposition, ie :
> 
> 1. removes all "?html" expression and renames all nameIt.ftl files to 
> nameIt.ftlh
> 2. removes all<#escape x as x?xml> ...    couples and renames all 
> nameIt.fo.ftl files to nameIt.fo.ftlx
> 
> I think these changes are safe (to be tested of course).
> 
> What do you think?
> 
> Thanks
> 
> Jacques
> 


signature.asc
Description: PGP signature


Re: FreeMarker 2.3.21 was released

2014-10-13 Thread Jacopo Cappellato
Congratulations Daniel, to you and to the Freemarker community!
A few minutes ago I have upgraded the OFBiz trunk and the OFBiz 13.07 release 
branch to the new release.

Kind regards,

Jacopo


On Oct 12, 2014, at 10:07 PM, Daniel Dekany ddek...@freemail.hu wrote:

 This version comes with, among many others, further improved error
 messages, new range operators, streamlined conversions between XML
 Schema formats and FTL types, possibility of using ISO 8601 or XML
 Schema date/time/dateTime format as the default, improved overloaded
 method selection (has to be explicitly enabled), setting for dealing
 with JDBC date-only an time-only value zone issues, safer and more
 memory-efficient way of managing object wrapper singletons, more
 flexible configuring via string values (such as .properties file),
 etc. See all the changes here:
 http://freemarker.org/docs/versions_2_3_21.html
 
 Note that with this release we have changed our proprietary BSD-style
 license to the more familiar Apache License, Version 2.0.
 
 You can download FreeMarker 2.3.21 here:
 http://sourceforge.net/projects/freemarker/files/freemarker/2.3.21/freemarker-2.3.21.tar.gz/download
 
 (Binary for Google App Engine:
 http://sourceforge.net/projects/freemarker/files/freemarker/2.3.21/freemarker-gae-2.3.21.jar/download)
 
 -- 
 Thanks,
 Daniel Dekany
 



Re: FreeMarker 2.3.21 was released

2014-10-13 Thread jler...@apache.org

Thanks Daniel, Jacopo!

Good news for both projects

Jacques

Le 13/10/2014 10:03, Jacopo Cappellato a écrit :

Congratulations Daniel, to you and to the Freemarker community!
A few minutes ago I have upgraded the OFBiz trunk and the OFBiz 13.07 release 
branch to the new release.

Kind regards,

Jacopo


On Oct 12, 2014, at 10:07 PM, Daniel Dekany ddek...@freemail.hu wrote:


This version comes with, among many others, further improved error
messages, new range operators, streamlined conversions between XML
Schema formats and FTL types, possibility of using ISO 8601 or XML
Schema date/time/dateTime format as the default, improved overloaded
method selection (has to be explicitly enabled), setting for dealing
with JDBC date-only an time-only value zone issues, safer and more
memory-efficient way of managing object wrapper singletons, more
flexible configuring via string values (such as .properties file),
etc. See all the changes here:
http://freemarker.org/docs/versions_2_3_21.html

Note that with this release we have changed our proprietary BSD-style
license to the more familiar Apache License, Version 2.0.

You can download FreeMarker 2.3.21 here:
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.21/freemarker-2.3.21.tar.gz/download

(Binary for Google App Engine:
http://sourceforge.net/projects/freemarker/files/freemarker/2.3.21/freemarker-gae-2.3.21.jar/download)

--
Thanks,
Daniel Dekany






Re: FreeMarker 2.3.21 Release Candidate 1 is out for testing

2014-09-01 Thread Jacopo Cappellato
Thank you Daniel,

I have committed 2.3.21-rc01 to the OFBiz trunk today and we will let you know 
if we face any issues.

Jacopo

On Sep 1, 2014, at 1:16 AM, Daniel Dekany ddek...@freemail.hu wrote:

 The final 2.3.21 is expected to come out in early or mid October. If
 you can, please use 2.3.21-rc01 for your development builds until
 that, and report any issues! Of course, any comments on the new
 features are highly welcome too.
 
 You can download it here:
 http://sourceforge.net/projects/freemarker/files/freemarker/2.3.21-rc01/freemarker-2.3.21-rc01.tar.gz/download
 
 The change log is quite big - please find it in the download, as part
 of the Manual. But some highlights are:
 
 - New kind of range expressions, like ranges with exclusive end.
 
 - String to boolean/number/date/time/dateTime conversions were
  enhanced to properly support XML Schema formats (often needed
  when processing XML coming from the data-model).
 
 - XML Schema and ISO 8601 date/time/dateTime formats can be specified
  as the default formats (via the date_format, time_format and
  datetime_format settings)
 
 - Major reworking of overloaded method selection, which was always
  a weak point of FreeMarker. But, to maximize backward compatibility,
  the improvements and fixes are only active if the BeansWrapper or
  DefaultObjectWrapper was created with incompatibleImprovements
  constructor argument 2.3.21 - see in the version history.
 
 - Error message quality improvements continued, to address the most
  common questions of users.
 
 - Many bug fixes.
 
 -- 
 Thanks,
 Daniel Dekany
 



Re: Freemarker

2014-06-24 Thread Jacopo Cappellato
This is now committed to the trunk with rev. 1605029 

Jacopo

On Jun 23, 2014, at 5:20 PM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:

 sure, I will.
 
 Thanks,
 
 Jacopo
 
 On Jun 23, 2014, at 4:42 PM, Dékány Dániel ddek...@freemail.hu wrote:
 
 That#39;s fine as far as I#39;m concerned. (Update from GitHub and rebuild 
 if that#39;s not a problem.) Thanks,  Daniel Dekany
 Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com írta:
 I can actually commit the new jar and the updated code to run it in the 
 trunk in order to simplify the tests from the community. WDYT?
 
 Jacopo
 
 On Jun 23, 2014, at 2:18 PM, Dékány Dániel ddek...@freemail.hu wrote:
 
 It would be good if testing the new version goes beyond that single test 
 case, however. Alhough the reworked method overloading support has good 
 test coverage, this was a quite complex change (it doesn#39;t just fix 
 the null issue, but many others, like rounding issues). Not to mention 
 that turing on the new overloaded method handling is inherently not 100% 
 backward compatible (that#39;s why it#39;s by default off). Although its 
 much less prone to fail with errors, there#39;s still a little chance 
 that you need to addjust some OfBiz code. Thanks,  Daniel Dekany 
 Jacques Le Roux jacques.le.r...@les7arts.com írta:
 Good news, thanks Jacopo!
 
 Jacques
 
 Le 23/06/2014 12:43, Jacopo Cappellato a écrit :
 FYI:
 
 I have been working with Daniel on this and he has helped a lot and I 
 have now a working environment; as soon as the new version will be 
 published I will update the OFBiz code accordingly.
 
 Jacopo
 
 On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let#39;s see what Daniel has to 
 say.
 
 Jacopo
 
 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:
 
 Hi,
 
 We need to address this 
 https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)
 
 
 
 -- 
 
 



Re: Freemarker

2014-06-23 Thread Jacopo Cappellato
FYI:

I have been working with Daniel on this and he has helped a lot and I have now 
a working environment; as soon as the new version will be published I will 
update the OFBiz code accordingly.

Jacopo

On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:

 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let's see what Daniel has to say.
 
 Jacopo
 
 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux jacques.le.r...@les7arts.com 
 wrote:
 
 Hi,
 
 We need to address this https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)
 



Re: Freemarker

2014-06-23 Thread Jacques Le Roux

Good news, thanks Jacopo!

Jacques

Le 23/06/2014 12:43, Jacopo Cappellato a écrit :

FYI:

I have been working with Daniel on this and he has helped a lot and I have now 
a working environment; as soon as the new version will be published I will 
update the OFBiz code accordingly.

Jacopo

On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:


I did the tests but unfortunately they were still not successful.
I have posted a comment to the ticket: let's see what Daniel has to say.

Jacopo

On Jun 17, 2014, at 10:13 AM, Jacques Le Roux jacques.le.r...@les7arts.com 
wrote:


Hi,

We need to address this https://sourceforge.net/p/freemarker/bugs/363/?page=2

Jacques
PS: @Adam, I put you to be sure you will get a chance to read ;)





--


Re: Freemarker

2014-06-23 Thread Dékány Dániel
It would be good if testing the new version goes beyond that single test case, 
however. Alhough the reworked method overloading support has good test 
coverage, this was a quite complex change (it doesn#39;t just fix the null 
issue, but many others, like rounding issues). Not to mention that turing on 
the new overloaded method handling is inherently not 100% backward compatible 
(that#39;s why it#39;s by default off). Although its much less prone to fail 
with errors, there#39;s still a little chance that you need to addjust some 
OfBiz code. Thanks,  Daniel Dekany 
Jacques Le Roux jacques.le.r...@les7arts.com írta:
Good news, thanks Jacopo!

Jacques

Le 23/06/2014 12:43, Jacopo Cappellato a écrit :
 FYI:

 I have been working with Daniel on this and he has helped a lot and I have 
 now a working environment; as soon as the new version will be published I 
 will update the OFBiz code accordingly.

 Jacopo

 On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:

 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let#39;s see what Daniel has to say.

 Jacopo

 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:

 Hi,

 We need to address this 
 https://sourceforge.net/p/freemarker/bugs/363/?page=2

 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)



-- 


Re: Freemarker

2014-06-23 Thread Jacopo Cappellato
I can actually commit the new jar and the updated code to run it in the trunk 
in order to simplify the tests from the community. WDYT?

Jacopo

On Jun 23, 2014, at 2:18 PM, Dékány Dániel ddek...@freemail.hu wrote:

 It would be good if testing the new version goes beyond that single test 
 case, however. Alhough the reworked method overloading support has good test 
 coverage, this was a quite complex change (it doesn#39;t just fix the null 
 issue, but many others, like rounding issues). Not to mention that turing on 
 the new overloaded method handling is inherently not 100% backward compatible 
 (that#39;s why it#39;s by default off). Although its much less prone to 
 fail with errors, there#39;s still a little chance that you need to addjust 
 some OfBiz code. Thanks,  Daniel Dekany 
 Jacques Le Roux jacques.le.r...@les7arts.com írta:
 Good news, thanks Jacopo!
 
 Jacques
 
 Le 23/06/2014 12:43, Jacopo Cappellato a écrit :
 FYI:
 
 I have been working with Daniel on this and he has helped a lot and I have 
 now a working environment; as soon as the new version will be published I 
 will update the OFBiz code accordingly.
 
 Jacopo
 
 On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let#39;s see what Daniel has to 
 say.
 
 Jacopo
 
 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:
 
 Hi,
 
 We need to address this 
 https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)
 
 
 
 -- 



Re: Freemarker

2014-06-23 Thread Dékány Dániel
That#39;s fine as far as I#39;m concerned. (Update from GitHub and rebuild if 
that#39;s not a problem.) Thanks,  Daniel Dekany
Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com írta:
I can actually commit the new jar and the updated code to run it in the trunk 
in order to simplify the tests from the community. WDYT?

Jacopo

On Jun 23, 2014, at 2:18 PM, Dékány Dániel ddek...@freemail.hu wrote:

 It would be good if testing the new version goes beyond that single test 
 case, however. Alhough the reworked method overloading support has good test 
 coverage, this was a quite complex change (it doesn#39;t just fix the null 
 issue, but many others, like rounding issues). Not to mention that turing on 
 the new overloaded method handling is inherently not 100% backward 
 compatible (that#39;s why it#39;s by default off). Although its much less 
 prone to fail with errors, there#39;s still a little chance that you need 
 to addjust some OfBiz code. Thanks,  Daniel Dekany 
 Jacques Le Roux jacques.le.r...@les7arts.com írta:
 Good news, thanks Jacopo!
 
 Jacques
 
 Le 23/06/2014 12:43, Jacopo Cappellato a écrit :
 FYI:
 
 I have been working with Daniel on this and he has helped a lot and I have 
 now a working environment; as soon as the new version will be published I 
 will update the OFBiz code accordingly.
 
 Jacopo
 
 On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let#39;s see what Daniel has to 
 say.
 
 Jacopo
 
 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:
 
 Hi,
 
 We need to address this 
 https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)
 
 
 
 -- 
 


Re: Freemarker

2014-06-23 Thread Jacopo Cappellato
sure, I will.

Thanks,

Jacopo

On Jun 23, 2014, at 4:42 PM, Dékány Dániel ddek...@freemail.hu wrote:

 That#39;s fine as far as I#39;m concerned. (Update from GitHub and rebuild 
 if that#39;s not a problem.) Thanks,  Daniel Dekany
 Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com írta:
 I can actually commit the new jar and the updated code to run it in the 
 trunk in order to simplify the tests from the community. WDYT?
 
 Jacopo
 
 On Jun 23, 2014, at 2:18 PM, Dékány Dániel ddek...@freemail.hu wrote:
 
 It would be good if testing the new version goes beyond that single test 
 case, however. Alhough the reworked method overloading support has good 
 test coverage, this was a quite complex change (it doesn#39;t just fix the 
 null issue, but many others, like rounding issues). Not to mention that 
 turing on the new overloaded method handling is inherently not 100% 
 backward compatible (that#39;s why it#39;s by default off). Although its 
 much less prone to fail with errors, there#39;s still a little chance that 
 you need to addjust some OfBiz code. Thanks,  Daniel Dekany 
 Jacques Le Roux jacques.le.r...@les7arts.com írta:
 Good news, thanks Jacopo!
 
 Jacques
 
 Le 23/06/2014 12:43, Jacopo Cappellato a écrit :
 FYI:
 
 I have been working with Daniel on this and he has helped a lot and I 
 have now a working environment; as soon as the new version will be 
 published I will update the OFBiz code accordingly.
 
 Jacopo
 
 On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 I did the tests but unfortunately they were still not successful.
 I have posted a comment to the ticket: let#39;s see what Daniel has to 
 say.
 
 Jacopo
 
 On Jun 17, 2014, at 10:13 AM, Jacques Le Roux 
 jacques.le.r...@les7arts.com wrote:
 
 Hi,
 
 We need to address this 
 https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)
 
 
 
 -- 
 



Re: Freemarker

2014-06-23 Thread Adam Heath
Thanks Jacopo for looking into this.  I haven't had time to jump back in 
to this old bug, I've been distracted on that other issue(keep finding 
more problems).


On 06/23/2014 10:20 AM, Jacopo Cappellato wrote:

sure, I will.

Thanks,

Jacopo

On Jun 23, 2014, at 4:42 PM, Dékány Dániel ddek...@freemail.hu wrote:


That#39;s fine as far as I#39;m concerned. (Update from GitHub and rebuild if 
that#39;s not a problem.) Thanks,  Daniel Dekany
Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com írta:

I can actually commit the new jar and the updated code to run it in the trunk 
in order to simplify the tests from the community. WDYT?

Jacopo

On Jun 23, 2014, at 2:18 PM, Dékány Dániel ddek...@freemail.hu wrote:


It would be good if testing the new version goes beyond that single test case, however. Alhough 
the reworked method overloading support has good test coverage, this was a quite complex change 
(it doesn#39;t just fix the null issue, but many others, like rounding issues). Not to 
mention that turing on the new overloaded method handling is inherently not 100% backward 
compatible (that#39;s why it#39;s by default off). Although its much less prone to 
fail with errors, there#39;s still a little chance that you need to addjust some OfBiz 
code. Thanks,  Daniel Dekany
Jacques Le Roux jacques.le.r...@les7arts.com írta:

Good news, thanks Jacopo!

Jacques

Le 23/06/2014 12:43, Jacopo Cappellato a écrit :

FYI:

I have been working with Daniel on this and he has helped a lot and I have now 
a working environment; as soon as the new version will be published I will 
update the OFBiz code accordingly.

Jacopo

On Jun 18, 2014, at 11:11 AM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:


I did the tests but unfortunately they were still not successful.
I have posted a comment to the ticket: let#39;s see what Daniel has to say.

Jacopo

On Jun 17, 2014, at 10:13 AM, Jacques Le Roux jacques.le.r...@les7arts.com 
wrote:


Hi,

We need to address this https://sourceforge.net/p/freemarker/bugs/363/?page=2

Jacques
PS: @Adam, I put you to be sure you will get a chance to read ;)



--




Re: Freemarker

2014-06-23 Thread Prabhakar Balakrishna
Am feeling good to use the release.

Is there any chance(s) to hack the OfBiz based site/atleast OfBiz demo
site of the new release.

-- 


A Question for God every morning.
What is the main event today? What do you want me to focus on today?
God Speed...
Thanks  Regards
Prabhakar Balakrishna
+91-88977-49482


Re: Freemarker

2014-06-23 Thread Prabhakar Balakrishna
I would like to know David E Jones is still working for OFBiz project.

-- 


A Question for God every morning.
What is the main event today? What do you want me to focus on today?
God Speed...
Thanks  Regards
Prabhakar Balakrishna
+91-88977-49482


Re: Freemarker

2014-06-23 Thread Anil K Patel
Prabhakar
This is odd question. 

Is there some thing very specific that you need?

Thanks and Regards
Anil Patel
COO
Hotwax Media Inc
http://www.hotwaxmedia.com/
ApacheCon US 2014 Silver Sponsor
http://na.apachecon.com/sponsor/our-sponsors
Sent from my iPad

 On Jun 23, 2014, at 2:40 PM, Prabhakar Balakrishna 
 prabhakar.balakris...@gmail.com wrote:
 
 I would like to know David E Jones is still working for OFBiz project.
 
 -- 
 
 
 A Question for God every morning.
 What is the main event today? What do you want me to focus on today?
 God Speed...
 Thanks  Regards
 Prabhakar Balakrishna
 +91-88977-49482


Re: Freemarker

2014-06-23 Thread Prabhakar Balakrishna
Dear Anil,
Am eagerly waiting to answer for the technical question Posted by me.

Every one please ignore my last question about David.I sent it to wrong address.

-- 


A Question for God every morning.
What is the main event today? What do you want me to focus on today?
God Speed...
Thanks  Regards
Prabhakar Balakrishna
+91-88977-49482


Re: Freemarker

2014-06-18 Thread Jacopo Cappellato
I did the tests but unfortunately they were still not successful.
I have posted a comment to the ticket: let's see what Daniel has to say.

Jacopo

On Jun 17, 2014, at 10:13 AM, Jacques Le Roux jacques.le.r...@les7arts.com 
wrote:

 Hi,
 
 We need to address this https://sourceforge.net/p/freemarker/bugs/363/?page=2
 
 Jacques
 PS: @Adam, I put you to be sure you will get a chance to read ;)



Re: Freemarker

2014-06-18 Thread Adam Heath
Yeah, I saw both mails.  Ofbiz is at the top of my list now.  Rest of 
the day.  However, OFBIZ-5659 is first, as it breaks existing 
functionality(has done so for 2 years).


On 06/18/2014 04:11 AM, Jacopo Cappellato wrote:

I did the tests but unfortunately they were still not successful.
I have posted a comment to the ticket: let's see what Daniel has to say.

Jacopo

On Jun 17, 2014, at 10:13 AM, Jacques Le Roux jacques.le.r...@les7arts.com 
wrote:


Hi,

We need to address this https://sourceforge.net/p/freemarker/bugs/363/?page=2

Jacques
PS: @Adam, I put you to be sure you will get a chance to read ;)




Re: Freemarker 2.3.20 is released

2013-08-14 Thread Jacopo Cappellato
If there are no objections I would like to upgrade the trunk with the latest 
official 2.3.20 release; then after some time, if we will not face any issues 
related to the overloaded methods in templates I will backport the jar to the 
13.07 branch: in this way we will distribute the official Freemarker jars, and 
it will be easy to stay updated with the new bug fix releases from the 
Freemarker community.

Jacopo


On Jul 7, 2013, at 8:40 AM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:

 Current situation: in OFBiz we are currently using/distributing a patched 
 version of Freemarker 2.3.19; the patch version addresses the bugs reported 
 below.
 
 News: the new version of Freemarker (2.3.20) has been finally released and it 
 is available for download:
 
 http://freemarker.org/docs/versions_2_3_20.html
 
 Good News: the deadlock issue that was affecting OFBiz (under special 
 conditions) that we have reported and helped to fix, has been resolved:
 
 http://sourceforge.net/p/freemarker/bugs/361/
 
 Bad News: the Wrong overloaded method issue, for which Adam Heat submitted 
 a patch to the Freemarker community and patched the 2.3.19 release we are 
 using, was not resolved in this release:
 
 http://sourceforge.net/p/freemarker/bugs/363/
 
 Adam, could you please check this comment from Daniel and possibly follow up 
 with him?
 
 http://sourceforge.net/p/freemarker/bugs/363/?limit=10page=1#bb98
 
 I'm looking into the overloaded method related parts (I don't mean the 
 patch) and... there are other issues as well. Certainly I will have to *try* 
 redesign/rewrite this stuff pretty much (it's tricky because of FM object 
 wrapping), and of course, I will have to add switch where you can chose 
 between old and the new implementation, globally or per template. Now this 
 100% won't be finished in two days, so I guess 2.3.20 will be release without 
 this, but then I continue working on this, and release 2.3.21 when this and 
 some other smaller things are done...
 
 Thanks,
 
 Jacopo
 



Re: Freemarker 2.3.20 is released

2013-08-14 Thread Jacques Le Roux
+1

Jacques

- Original Message - 
From: Jacopo Cappellato jacopo.cappell...@hotwaxmedia.com
To: dev@ofbiz.apache.org
Sent: Wednesday, August 14, 2013 11:50 AM
Subject: Re: Freemarker 2.3.20 is released


 If there are no objections I would like to upgrade the trunk with the latest 
 official 2.3.20 release; then after some time, if we will not face any issues 
 related to the overloaded methods in templates I will backport the jar to the 
 13.07 branch: in this way we will distribute the official Freemarker jars, 
 and it will be easy to stay updated with the new bug fix releases from the 
 Freemarker community.
 
 Jacopo
 
 
 On Jul 7, 2013, at 8:40 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 Current situation: in OFBiz we are currently using/distributing a patched 
 version of Freemarker 2.3.19; the patch version addresses the bugs reported 
 below.
 
 News: the new version of Freemarker (2.3.20) has been finally released and 
 it is available for download:
 
 http://freemarker.org/docs/versions_2_3_20.html
 
 Good News: the deadlock issue that was affecting OFBiz (under special 
 conditions) that we have reported and helped to fix, has been resolved:
 
 http://sourceforge.net/p/freemarker/bugs/361/
 
 Bad News: the Wrong overloaded method issue, for which Adam Heat submitted 
 a patch to the Freemarker community and patched the 2.3.19 release we are 
 using, was not resolved in this release:
 
 http://sourceforge.net/p/freemarker/bugs/363/
 
 Adam, could you please check this comment from Daniel and possibly follow up 
 with him?
 
 http://sourceforge.net/p/freemarker/bugs/363/?limit=10page=1#bb98
 
 I'm looking into the overloaded method related parts (I don't mean the 
 patch) and... there are other issues as well. Certainly I will have to *try* 
 redesign/rewrite this stuff pretty much (it's tricky because of FM object 
 wrapping), and of course, I will have to add switch where you can chose 
 between old and the new implementation, globally or per template. Now this 
 100% won't be finished in two days, so I guess 2.3.20 will be release 
 without this, but then I continue working on this, and release 2.3.21 when 
 this and some other smaller things are done...
 
 Thanks,
 
 Jacopo
 
 



Re: Freemarker 2.3.20 is released

2013-08-14 Thread Deepak Dixit
+1 


Thanks  Regards
-- 
Deepak Dixit

On Aug 14, 2013, at 3:20 PM, Jacopo Cappellato wrote:

 If there are no objections I would like to upgrade the trunk with the latest 
 official 2.3.20 release; then after some time, if we will not face any issues 
 related to the overloaded methods in templates I will backport the jar to the 
 13.07 branch: in this way we will distribute the official Freemarker jars, 
 and it will be easy to stay updated with the new bug fix releases from the 
 Freemarker community.
 
 Jacopo
 
 
 On Jul 7, 2013, at 8:40 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:
 
 Current situation: in OFBiz we are currently using/distributing a patched 
 version of Freemarker 2.3.19; the patch version addresses the bugs reported 
 below.
 
 News: the new version of Freemarker (2.3.20) has been finally released and 
 it is available for download:
 
 http://freemarker.org/docs/versions_2_3_20.html
 
 Good News: the deadlock issue that was affecting OFBiz (under special 
 conditions) that we have reported and helped to fix, has been resolved:
 
 http://sourceforge.net/p/freemarker/bugs/361/
 
 Bad News: the Wrong overloaded method issue, for which Adam Heat submitted 
 a patch to the Freemarker community and patched the 2.3.19 release we are 
 using, was not resolved in this release:
 
 http://sourceforge.net/p/freemarker/bugs/363/
 
 Adam, could you please check this comment from Daniel and possibly follow up 
 with him?
 
 http://sourceforge.net/p/freemarker/bugs/363/?limit=10page=1#bb98
 
 I'm looking into the overloaded method related parts (I don't mean the 
 patch) and... there are other issues as well. Certainly I will have to *try* 
 redesign/rewrite this stuff pretty much (it's tricky because of FM object 
 wrapping), and of course, I will have to add switch where you can chose 
 between old and the new implementation, globally or per template. Now this 
 100% won't be finished in two days, so I guess 2.3.20 will be release 
 without this, but then I continue working on this, and release 2.3.21 when 
 this and some other smaller things are done...
 
 Thanks,
 
 Jacopo
 
 



smime.p7s
Description: S/MIME cryptographic signature


Re: Freemarker 2.3.20 is released

2013-08-14 Thread Ashish Vijaywargiya
+1

--
Kind Regards
Ashish Vijaywargiya


On Wed, Aug 14, 2013 at 3:20 PM, Jacopo Cappellato 
jacopo.cappell...@hotwaxmedia.com wrote:

 If there are no objections I would like to upgrade the trunk with the
 latest official 2.3.20 release; then after some time, if we will not face
 any issues related to the overloaded methods in templates I will backport
 the jar to the 13.07 branch: in this way we will distribute the official
 Freemarker jars, and it will be easy to stay updated with the new bug fix
 releases from the Freemarker community.

 Jacopo


 On Jul 7, 2013, at 8:40 AM, Jacopo Cappellato 
 jacopo.cappell...@hotwaxmedia.com wrote:

  Current situation: in OFBiz we are currently using/distributing a
 patched version of Freemarker 2.3.19; the patch version addresses the bugs
 reported below.
 
  News: the new version of Freemarker (2.3.20) has been finally released
 and it is available for download:
 
  http://freemarker.org/docs/versions_2_3_20.html
 
  Good News: the deadlock issue that was affecting OFBiz (under special
 conditions) that we have reported and helped to fix, has been resolved:
 
  http://sourceforge.net/p/freemarker/bugs/361/
 
  Bad News: the Wrong overloaded method issue, for which Adam Heat
 submitted a patch to the Freemarker community and patched the 2.3.19
 release we are using, was not resolved in this release:
 
  http://sourceforge.net/p/freemarker/bugs/363/
 
  Adam, could you please check this comment from Daniel and possibly
 follow up with him?
 
  http://sourceforge.net/p/freemarker/bugs/363/?limit=10page=1#bb98
 
  I'm looking into the overloaded method related parts (I don't mean the
 patch) and... there are other issues as well. Certainly I will have to
 *try* redesign/rewrite this stuff pretty much (it's tricky because of FM
 object wrapping), and of course, I will have to add switch where you can
 chose between old and the new implementation, globally or per template. Now
 this 100% won't be finished in two days, so I guess 2.3.20 will be release
 without this, but then I continue working on this, and release 2.3.21 when
 this and some other smaller things are done...
 
  Thanks,
 
  Jacopo
 




Re: Freemarker Macro Library

2011-06-03 Thread Bilgin Ibryam
Hi Adrian,


On Fri, Jun 3, 2011 at 6:12 AM, Adrian Crum 
adrian.c...@sandglass-software.com wrote:

 I'm working on a project where screen widgets can't be used and I need to
 use Freemarker templates instead. I would like to use the Freemarker macros
 found in the widget macro library, but they are cumbersome to use because
 they have MANY parameters - and almost all of them are set up as required
 parameters. The markup the macros generate requires only a handful of the
 parameters, and the rest of them are optional. So, I would like to work on
 the macro library and provide default arguments for any parameters that
 aren't required by the markup. Any thoughts or objections?


I reused form widget lookup macros in freemarker templates using similar
approach. Just create a wrapper macro with default values and then call the
widget macros. For an example check how htmlTemplate.lookupField macro is
used and implemented in htmlTemplate.ftl


HTH
Bilgin Ibryam


Re: Freemarker Macro Library

2011-06-03 Thread Adrian Crum
That's an interesting approach, but it duplicates code. It would be 
preferable to fix the macros.


-Adrian

On 6/3/2011 10:26 AM, Bilgin Ibryam wrote:

Hi Adrian,


On Fri, Jun 3, 2011 at 6:12 AM, Adrian Crum
adrian.c...@sandglass-software.com  wrote:


I'm working on a project where screen widgets can't be used and I need to
use Freemarker templates instead. I would like to use the Freemarker macros
found in the widget macro library, but they are cumbersome to use because
they have MANY parameters - and almost all of them are set up as required
parameters. The markup the macros generate requires only a handful of the
parameters, and the rest of them are optional. So, I would like to work on
the macro library and provide default arguments for any parameters that
aren't required by the markup. Any thoughts or objections?


I reused form widget lookup macros in freemarker templates using similar
approach. Just create a wrapper macro with default values and then call the
widget macros. For an example check how htmlTemplate.lookupField macro is
used and implemented in htmlTemplate.ftl


HTH
Bilgin Ibryam



Re: Freemarker update

2011-05-11 Thread Jacques Le Roux

Sorry I completly forgot about it but had a doubt in mind, that's why I send a 
message before doing anything
In http://markmail.org/message/uswj4i54iczwothh you suggested some possible progresses I guess related to 
http://svn.apache.org/viewvc?view=revisionrevision=986577


I'd not prefer to stay forever stuck with 2.3.10 when everybody is going ahead. Someone I know which needs to works on an OFBIz 
based CMS is investigating. Maybe we could share the efforts?


Jacques

From: Hans Bakker mailingl...@antwebsystems.com

remember that the new version was slowing down the ecommerce
significantly

On Wed, 2011-05-11 at 14:15 +0200, Jacques Le Roux wrote:

Hi,

It's a while we did not update Freemarker. We use version 2.3.10 (2007-04-20), soon (16th of May) 2.3.17 will be released with 
some

interesting features and numerous bug fixes.

http://freemarker.org/docs-rc/versions_2_3_11.html
(?c) only used in geolocation.ftl, I don't expect much problems there
Interesting:  A new model interface, TemplateDirectiveModel provides an easier 
paradigm for implementing user-defined directives
than TemplateTransformModel did previously. TemplateTransformModel will be deprecated. So should still work, cases could be 
updated,

and easier way to do it now

http://freemarker.org/docs-rc/versions_2_3_12.html
In the templates, now you can conveniently call Java methods that use the Java 5 varargs feature (variable-length argument 
lists).


http://freemarker.org/docs-rc/versions_2_3_13.html
New built-ins for rounding numbers: round, floor, ceiling.
Reworked template caching mechanism for radically improved concurrent 
performance (Achieved 20x speedup)

http://freemarker.org/docs-rc/versions_2_3_14.html
New built-in: xhtml

http://freemarker.org/docs-rc/versions_2_3_17rc1.html
?seq_index_of and ?seq_last_index_of now works on collections
?long now works for date, date-time and time values, and returns the 
milliseconds since the epoch (as java.util.Date.getTime()).
New special variable, now. This returns the current date-time.
?sort and ?sort_by now supports sorting boolean values.
FreeMarker now can log its messages directly using SLF4J or Apache Commons 
Logging.

So I'd like to update soon using 2.3.17. Someone is currently testing the RC1 in a custome application  (based on OFBiz of 
course)


Jacques




--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.






Re: Freemarker update

2011-05-11 Thread Jacques Le Roux

Hans,

BTW inr986577 you said We are in discussion with the freemarker developers to solve this problem there.. Could you be more 
specific and explain a bit the issues you crossed, only those in http://markmail.org/message/ppie7riv2i3cwlku ?
Also it seems there have been several bug fixes between 15 and 17RC1, I think it's worth trying this new version, could you give it 
a try?


I'd like to have Scott's opininon also because he wrote the directive 
https://fisheye6.atlassian.com/changelog/ofbiz?cs=956484

Thanks

Jacques


From: Jacques Le Roux jacques.le.r...@les7arts.com

Sorry I completly forgot about it but had a doubt in mind, that's why I send a 
message before doing anything
In http://markmail.org/message/uswj4i54iczwothh you suggested some possible 
progresses I guess related to
http://svn.apache.org/viewvc?view=revisionrevision=986577

I'd not prefer to stay forever stuck with 2.3.10 when everybody is going ahead. 
Someone I know which needs to works on an OFBIz
based CMS is investigating. Maybe we could share the efforts?

Jacques

From: Hans Bakker mailingl...@antwebsystems.com

remember that the new version was slowing down the ecommerce
significantly

On Wed, 2011-05-11 at 14:15 +0200, Jacques Le Roux wrote:

Hi,

It's a while we did not update Freemarker. We use version 2.3.10 (2007-04-20), 
soon (16th of May) 2.3.17 will be released with
some
interesting features and numerous bug fixes.

http://freemarker.org/docs-rc/versions_2_3_11.html
(?c) only used in geolocation.ftl, I don't expect much problems there
Interesting:  A new model interface, TemplateDirectiveModel provides an easier 
paradigm for implementing user-defined directives
than TemplateTransformModel did previously. TemplateTransformModel will be 
deprecated. So should still work, cases could be
updated,
and easier way to do it now

http://freemarker.org/docs-rc/versions_2_3_12.html
In the templates, now you can conveniently call Java methods that use the Java 
5 varargs feature (variable-length argument
lists).

http://freemarker.org/docs-rc/versions_2_3_13.html
New built-ins for rounding numbers: round, floor, ceiling.
Reworked template caching mechanism for radically improved concurrent 
performance (Achieved 20x speedup)

http://freemarker.org/docs-rc/versions_2_3_14.html
New built-in: xhtml

http://freemarker.org/docs-rc/versions_2_3_17rc1.html
?seq_index_of and ?seq_last_index_of now works on collections
?long now works for date, date-time and time values, and returns the 
milliseconds since the epoch (as java.util.Date.getTime()).
New special variable, now. This returns the current date-time.
?sort and ?sort_by now supports sorting boolean values.
FreeMarker now can log its messages directly using SLF4J or Apache Commons 
Logging.

So I'd like to update soon using 2.3.17. Someone is currently testing the RC1 
in a custome application  (based on OFBiz of
course)

Jacques




--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.








Re: freemarker Static[UtilMisc].toMap() use

2010-12-09 Thread Adam Heath

On 12/09/2010 01:58 PM, Adam Heath wrote:

I just noticed that several(many) ftl files use UtilMisc.toMap, but
others are using {}(freemarker syntax). I assume we would like the
latter to prevail. Agreements?


Same goes for UtilMisc.toMap and UtilMisc.toList inside groovy; groovy 
has native support for map/list creation, and imho should be preferred.


Re: freemarker Static[UtilMisc].toMap() use

2010-12-09 Thread Jacques Le Roux

Yes I agree, why not use an idiomatic syntax when it exists?
I guess some persons prefer to have the same syntax everywhere or even don't know the idiomatic syntax (or maybe in some cases 
simply C/P snippets from Java)


Jacques

From: Adam Heath doo...@brainfood.com

On 12/09/2010 01:58 PM, Adam Heath wrote:

I just noticed that several(many) ftl files use UtilMisc.toMap, but
others are using {}(freemarker syntax). I assume we would like the
latter to prevail. Agreements?


Same goes for UtilMisc.toMap and UtilMisc.toList inside groovy; groovy has native support for map/list creation, and imho should 
be preferred.







Re: freemarker Static[UtilMisc].toMap() use

2010-12-09 Thread Adam Heath

On 12/09/2010 04:45 PM, Jacques Le Roux wrote:

Yes I agree, why not use an idiomatic syntax when it exists?
I guess some persons prefer to have the same syntax everywhere or even
don't know the idiomatic syntax (or maybe in some cases simply C/P
snippets from Java)


The only reason I knew about {} in freemarker is because I saw it 
being used.  I am finding all findByAnd calls, to deprecate older 
versions, so am getting a chance to look at tons of files.


As for using {} and [] in freemarker, and [:] and [] in groovy, the 
native syntax tends to be faster.  Using classes in freemarker and 
groovy requires using reflection, which does end up being slower. 
Using native syntax all that indirection can be bypassed.


Re: Freemarker does not accept nested jsp tag.

2009-11-15 Thread Adrian Crum
I'm not 100% certain, but it might be that Freemarker considers @birt... to be 
a transform.

-Adrian

--- On Sun, 11/15/09, Chatree Srichart chatree.srich...@gmail.com wrote:

 From: Chatree Srichart chatree.srich...@gmail.com
 Subject: Freemarker does not accept nested jsp tag.
 To: dev@ofbiz.apache.org
 Date: Sunday, November 15, 2009, 7:36 AM
 I use jsp tag in ftl file like this.
 
 #assign birt = JspTaglibs[/WEB-INF/birt.tld]/
 @birt.viewer id=birtViewer
    
 reportDesign=component://birt/webapp/birt/report/product.rptdesign
     baseURL=/birt
     height=700
     width=900
     format=html
     showParameterPage=false
         @birt.param
 name=companyName value=AntWebsystems/@
  /@
 
 It not work because @birt.param/ tag be ignored.
 
 When I use in jsp like this ...
 
 %@ taglib uri=/WEB-INF/birt.tld prefix=birt %
 birt:viewer id=birtViewer
    
 reportDesign=component://birt/webapp/birt/report/product.rptdesign
     baseURL=/birt
     height=700
     width=900
     format=html
     showParameterPage=false
         birt:param
 name=companyName
 value=AntWebsystems/birt:param
 /birt:viewer
 
 It work fine.
 
 Can any body help me?
 
 Thank you...
 


  


Re: Freemarker does not accept nested jsp tag.

2009-11-15 Thread Chatree Srichart
Hello, Adrian Crum

How could I fix it?

Thank you.


Re: Freemarker deprecated built-ins

2008-06-30 Thread Ashish Vijaywargiya
Jacques,

I also noticed this while I was reading the new feature in the Eclipse
Ganymede.
But its only for Java code :-).

The important feature on the image you attached is that Now eclipse format
only the edited lines instead of formating the whole java files.
Anyway thanks for sharing it.

--
Ashish



On Sat, Jun 28, 2008 at 5:09 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

 Last but not least : I have just discovered by chance the Eclipse Save
 Actions preference. I put a tip there :

 http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips#EclipseTips-Setting%22SaveActions%22Preference.
 I think it's worth it !


 Jacques

 From: Jacques Le Roux [EMAIL PROTECTED]

 For those who have pretty big workspaces (many projects) with some plugins
 (moreover in my case, I was using 3.4 milestones from
 months, maybe straight from 3.3 it's ok)
 Actually it was not Classic that I used but the pure 3.4 SDK (ie without
 any plugins). I had problems with all other brands. You
 may
 find it from the Download Classic line, look for  Eclipse Project
 download page.
 Then I used the new P2 Update Manager, very nice.

 HTH

 Jacques

 - Original Message - From: Jacques Le Roux 
 [EMAIL PROTECTED]
 To: dev@ofbiz.apache.org
 Sent: Saturday, June 28, 2008 10:57 AM
 Subject: Re: Freemarker deprecated built-ins


  This morning, I used the classic package, added needed plugins and all
 worked without any issues

 Jacques

 From: Jacques Le Roux [EMAIL PROTECTED]

 Jacopo,

 I got tons of issues with Eclipse 3.4 both on Windows and Linux (I used
 the J2EE distro i have alos dowloaded the classic one
 but
 not yet tried). I got back to 3.4M7 on Windows which is working like a
 charm but Mylyn (Mylyn can't be updated in 3.4M7).
 I suppose indeed that there is a problem with Subversion integration at
 large (I use Subclipse preferablyà. I quickly saw some
 indications in one existing workspace's log I unsuccessufully tried to
 load on Windows about subversion issue. I will retry
 later
 by importing projects one by one...

 On a fresh new Linux installation (only the OS Ubuntu 8.04 up to date so
 far) I was not even able to launch Eclipse 3.4 :(. I
 used the J2EE distro.
 I did not try yet on my dual boot dev machine with Ubuntu LTS 6.06 (I
 think I'm still using Eclipse 3.3.1 on this machine)

 I will let you know, how it's going. It seems that there is something
 wrong in this release, it was so easy to switch from M2 to
 M3 then M4 and finally M7...

 Jacqiues

 From: Jacopo Cappellato [EMAIL PROTECTED]

 Jacques,

 are you using a plugin for SVN in Eclipse 3.4? I tried with the
  subversive plugin but it didn't work for me (but chances are
 I
 did  something wrong).

 Jacopo

 On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:

  BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August
  2007). In my opininon it's really better than any versions
 before.  Not only in term of features but also *stability* (at least
 on  Windows, I did not have many issues - if any - on
 Linux
 before).

 Jacques

 From: Ashish Vijaywargiya [EMAIL PROTECTED]

 I am also using the Freemarker plugin distributed by Jboss.
 Its working fine for me.
 --
 Ashish
 On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
 [EMAIL PROTECTED] wrote:

 I just noticed that Freemarker 2.4 is not yet available
 http://freemarker.sourceforge.net/freemarkerdownload.html
 It's not needed for the 1st builtin replacement but we should
  preferably
 use this version as explained in the link below.
 We may wait for 2.4 to do this one...

 BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
 http://www.jboss.org/tools/download/index.html (i used the
 http://download.jboss.org/jbosstools/updates/stable link)

 Jacques

 From: Jacques Le Roux [EMAIL PROTECTED]

 I did it locally, but I wonder now if it's a good idea since ?
 exists and

 ?if_exists are more readable than ?? and !
 ?exists and ?if_exists still work and and only ! is bringing some
  more
 features (mostly dealing with false also). If we don't do it  now,
 maybe in
 a future we will have to do it. It's a 10 min work anyway...

 I think that as soon as you are used to them (I mean ?? and !)
  it's not a
 big deal, but  please express yourself

 Thanks

 Jacques

 From: Vikas Mayur [EMAIL PROTECTED]

  +1

 Vikas

 On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
 [EMAIL PROTECTED] wrote:

 Hi All,


 Why do you think about updating all our templates following
 http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
 At least the second and the third could be done automatically.

 Jacques














Re: Freemarker deprecated built-ins

2008-06-28 Thread Jacques Le Roux

This morning, I used the classic package, added needed plugins and all worked 
without any issues

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

Jacopo,

I got tons of issues with Eclipse 3.4 both on Windows and Linux (I used the J2EE distro i have alos dowloaded the classic one but 
not yet tried). I got back to 3.4M7 on Windows which is working like a charm but Mylyn (Mylyn can't be updated in 3.4M7).
I suppose indeed that there is a problem with Subversion integration at large (I use Subclipse preferablyà. I quickly saw some 
indications in one existing workspace's log I unsuccessufully tried to load on Windows about subversion issue. I will retry later 
by importing projects one by one...


On a fresh new Linux installation (only the OS Ubuntu 8.04 up to date so far) I was not even able to launch Eclipse 3.4 :(. I used 
the J2EE distro.

I did not try yet on my dual boot dev machine with Ubuntu LTS 6.06 (I think I'm 
still using Eclipse 3.3.1 on this machine)

I will let you know, how it's going. It seems that there is something wrong in this release, it was so easy to switch from M2 to 
M3 then M4 and finally M7...


Jacqiues

From: Jacopo Cappellato [EMAIL PROTECTED]

Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the  subversive 
plugin but it didn't work for me (but chances are I
did  something wrong).

Jacopo

On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:


BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  2007). In my 
opininon it's really better than any versions
before.  Not only in term of features but also *stability* (at least on  
Windows, I did not have many issues - if any - on Linux
before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  preferably
use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? exists and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some  more
features (mostly dealing with false also). If we don't do it  now, maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  it's not a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]


+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,


Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques


















Re: Freemarker deprecated built-ins

2008-06-28 Thread Jacques Le Roux

For those who have pretty big workspaces (many projects) with some plugins 
(moreover in my case, I was using 3.4 milestones from
months, maybe straight from 3.3 it's ok)
Actually it was not Classic that I used but the pure 3.4 SDK (ie without any 
plugins). I had problems with all other brands. You may
find it from the Download Classic line, look for  Eclipse Project download 
page.
Then I used the new P2 Update Manager, very nice.

HTH

Jacques

- Original Message - 
From: Jacques Le Roux [EMAIL PROTECTED]

To: dev@ofbiz.apache.org
Sent: Saturday, June 28, 2008 10:57 AM
Subject: Re: Freemarker deprecated built-ins



This morning, I used the classic package, added needed plugins and all worked 
without any issues

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

Jacopo,

I got tons of issues with Eclipse 3.4 both on Windows and Linux (I used the 
J2EE distro i have alos dowloaded the classic one but
not yet tried). I got back to 3.4M7 on Windows which is working like a charm 
but Mylyn (Mylyn can't be updated in 3.4M7).
I suppose indeed that there is a problem with Subversion integration at large 
(I use Subclipse preferablyà. I quickly saw some
indications in one existing workspace's log I unsuccessufully tried to load on 
Windows about subversion issue. I will retry later
by importing projects one by one...

On a fresh new Linux installation (only the OS Ubuntu 8.04 up to date so far) I 
was not even able to launch Eclipse 3.4 :(. I
used the J2EE distro.
I did not try yet on my dual boot dev machine with Ubuntu LTS 6.06 (I think I'm 
still using Eclipse 3.3.1 on this machine)

I will let you know, how it's going. It seems that there is something wrong in 
this release, it was so easy to switch from M2 to
M3 then M4 and finally M7...

Jacqiues

From: Jacopo Cappellato [EMAIL PROTECTED]

Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the  subversive 
plugin but it didn't work for me (but chances are
I
did  something wrong).

Jacopo

On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:


BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  2007). In my 
opininon it's really better than any versions
before.  Not only in term of features but also *stability* (at least on  
Windows, I did not have many issues - if any - on
Linux
before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  preferably
use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? exists and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some  more
features (mostly dealing with false also). If we don't do it  now, maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  it's not a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]


+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,


Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques




















Re: Freemarker deprecated built-ins

2008-06-28 Thread Jacques Le Roux

Last but not least : I have just discovered by chance the Eclipse Save Actions 
preference. I put a tip there :
http://docs.ofbiz.org/display/OFBIZ/Eclipse+Tips#EclipseTips-Setting%22SaveActions%22Preference.
 I think it's worth it !

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

For those who have pretty big workspaces (many projects) with some plugins 
(moreover in my case, I was using 3.4 milestones from
months, maybe straight from 3.3 it's ok)
Actually it was not Classic that I used but the pure 3.4 SDK (ie without any 
plugins). I had problems with all other brands. You
may
find it from the Download Classic line, look for  Eclipse Project download 
page.
Then I used the new P2 Update Manager, very nice.

HTH

Jacques

- Original Message - 
From: Jacques Le Roux [EMAIL PROTECTED]

To: dev@ofbiz.apache.org
Sent: Saturday, June 28, 2008 10:57 AM
Subject: Re: Freemarker deprecated built-ins



This morning, I used the classic package, added needed plugins and all worked 
without any issues

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

Jacopo,

I got tons of issues with Eclipse 3.4 both on Windows and Linux (I used the 
J2EE distro i have alos dowloaded the classic one
but
not yet tried). I got back to 3.4M7 on Windows which is working like a charm 
but Mylyn (Mylyn can't be updated in 3.4M7).
I suppose indeed that there is a problem with Subversion integration at large 
(I use Subclipse preferablyà. I quickly saw some
indications in one existing workspace's log I unsuccessufully tried to load on 
Windows about subversion issue. I will retry
later
by importing projects one by one...

On a fresh new Linux installation (only the OS Ubuntu 8.04 up to date so far) I 
was not even able to launch Eclipse 3.4 :(. I
used the J2EE distro.
I did not try yet on my dual boot dev machine with Ubuntu LTS 6.06 (I think I'm 
still using Eclipse 3.3.1 on this machine)

I will let you know, how it's going. It seems that there is something wrong in 
this release, it was so easy to switch from M2 to
M3 then M4 and finally M7...

Jacqiues

From: Jacopo Cappellato [EMAIL PROTECTED]

Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the  subversive 
plugin but it didn't work for me (but chances are
I
did  something wrong).

Jacopo

On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:


BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  2007). In my 
opininon it's really better than any versions
before.  Not only in term of features but also *stability* (at least on  
Windows, I did not have many issues - if any - on
Linux
before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  preferably
use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? exists and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some  more
features (mostly dealing with false also). If we don't do it  now, maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  it's not a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]


+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,


Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques






















Re: Freemarker deprecated built-ins

2008-06-27 Thread Jacopo Cappellato

Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the  
subversive plugin but it didn't work for me (but chances are I did  
something wrong).


Jacopo

On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:

BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  
2007). In my opininon it's really better than any versions before.  
Not only in term of features but also *stability* (at least on  
Windows, I did not have many issues - if any - on Linux before).


Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  
preferably

use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? 
exists and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some  
more
features (mostly dealing with false also). If we don't do it  
now, maybe in

a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  
it's not a

big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]


+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,


Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques














Re: Freemarker deprecated built-ins

2008-06-27 Thread Ashish Vijaywargiya
Jacopo ,

Why don't you use Subclipse ?
Do you think Subversive is good ?

I downloaded the Eclipse Ganymede(www.eclipse.org) launced on 25th June and
using Subclipse for SVN thing.
Ganymede is perfect and working fine on my Linux box.

--
Ashish


On Fri, Jun 27, 2008 at 8:52 AM, Jacopo Cappellato 
[EMAIL PROTECTED] wrote:

 Jacques,

 are you using a plugin for SVN in Eclipse 3.4? I tried with the
 subversive plugin but it didn't work for me (but chances are I did
 something wrong).

 Jacopo


 On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:

  BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August 2007). In
 my opininon it's really better than any versions before. Not only in term of
 features but also *stability* (at least on Windows, I did not have many
 issues - if any - on Linux before).

 Jacques

 From: Ashish Vijaywargiya [EMAIL PROTECTED]

 I am also using the Freemarker plugin distributed by Jboss.
 Its working fine for me.
 --
 Ashish
 On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
 [EMAIL PROTECTED] wrote:

 I just noticed that Freemarker 2.4 is not yet available
 http://freemarker.sourceforge.net/freemarkerdownload.html
 It's not needed for the 1st builtin replacement but we should preferably
 use this version as explained in the link below.
 We may wait for 2.4 to do this one...

 BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
 http://www.jboss.org/tools/download/index.html (i used the
 http://download.jboss.org/jbosstools/updates/stable link)

 Jacques

 From: Jacques Le Roux [EMAIL PROTECTED]

 I did it locally, but I wonder now if it's a good idea since ?exists and

 ?if_exists are more readable than ?? and !
 ?exists and ?if_exists still work and and only ! is bringing some more
 features (mostly dealing with false also). If we don't do it now,
 maybe in
 a future we will have to do it. It's a 10 min work anyway...

 I think that as soon as you are used to them (I mean ?? and !) it's not
 a
 big deal, but  please express yourself

 Thanks

 Jacques

 From: Vikas Mayur [EMAIL PROTECTED]

  +1

 Vikas

 On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
 [EMAIL PROTECTED] wrote:

 Hi All,


 Why do you think about updating all our templates following
 http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
 At least the second and the third could be done automatically.

 Jacques










Re: Freemarker deprecated built-ins

2008-06-27 Thread Jacopo Cappellato

Ashish,

the main reason is that I couldn't find the Subclipse plugin for  
Ganymede... but maybe I've just missed it. Do you have a link to  
download it?


Thanks,

Jacopo

On Jun 27, 2008, at 3:53 PM, Ashish Vijaywargiya wrote:


Jacopo ,

Why don't you use Subclipse ?
Do you think Subversive is good ?

I downloaded the Eclipse Ganymede(www.eclipse.org) launced on 25th  
June and

using Subclipse for SVN thing.
Ganymede is perfect and working fine on my Linux box.

--
Ashish


On Fri, Jun 27, 2008 at 8:52 AM, Jacopo Cappellato 
[EMAIL PROTECTED] wrote:


Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the
subversive plugin but it didn't work for me (but chances are I did
something wrong).

Jacopo


On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:

BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  
2007). In
my opininon it's really better than any versions before. Not only  
in term of
features but also *stability* (at least on Windows, I did not have  
many

issues - if any - on Linux before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]


I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:


I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  
preferably

use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss  
IDE :

http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? 
exists and



?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing  
some more
features (mostly dealing with false also). If we don't do it  
now,

maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  
it's not

a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]

+1


Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,



Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques

















Re: Freemarker deprecated built-ins

2008-06-27 Thread Jacopo Cappellato

Thanks Ashish,

it worked like a charm... and yes, I am using a Mac and now I will  
switch to Ganymede and I will let you know how it works (it seems  
really good for now).


Sorry for the off topic for the dev list.

Jacopo


On Jun 27, 2008, at 4:08 PM, Ashish Vijaywargiya wrote:


Jacopo,

Here is the link for the Subclipse installation.
http://subclipse.tigris.org/install.html

You should select first option from step 4.

   Name: Subclipse 1.2.x (Eclipse 3.2+)
   URL:  http://subclipse.tigris.org/update_1.2.x


If I am right you are using Mac Notebook.
Right ?
If Yes , Jacopo please let me know your thoughts on Eclipse Ganymede  
on Mac

Notebook.

--
Ashish


On Fri, Jun 27, 2008 at 10:01 AM, Jacopo Cappellato 
[EMAIL PROTECTED] wrote:


Ashish,

the main reason is that I couldn't find the Subclipse plugin for
Ganymede... but maybe I've just missed it. Do you have a link to  
download

it?

Thanks,

Jacopo


On Jun 27, 2008, at 3:53 PM, Ashish Vijaywargiya wrote:

Jacopo ,


Why don't you use Subclipse ?
Do you think Subversive is good ?

I downloaded the Eclipse Ganymede(www.eclipse.org) launced on 25th  
June

and
using Subclipse for SVN thing.
Ganymede is perfect and working fine on my Linux box.

--
Ashish


On Fri, Jun 27, 2008 at 8:52 AM, Jacopo Cappellato 
[EMAIL PROTECTED] wrote:

Jacques,


are you using a plugin for SVN in Eclipse 3.4? I tried with the
subversive plugin but it didn't work for me (but chances are I  
did

something wrong).

Jacopo


On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:

BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  
2007). In


my opininon it's really better than any versions before. Not  
only in

term of
features but also *stability* (at least on Windows, I did not  
have many

issues - if any - on Linux before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.

Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available

http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should
preferably
use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss  
IDE :

http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? 
exists

and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing  
some

more
features (mostly dealing with false also). If we don't do it  
now,

maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ??  
and !) it's

not
a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]

+1



Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,



Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ 
ref_depr_builtin.html ?
At least the second and the third could be done  
automatically.


Jacques




















Re: Freemarker deprecated built-ins

2008-06-27 Thread Jacques Le Roux

Jacopo,

I got tons of issues with Eclipse 3.4 both on Windows and Linux (I used the J2EE distro i have alos dowloaded the classic one but 
not yet tried). I got back to 3.4M7 on Windows which is working like a charm but Mylyn (Mylyn can't be updated in 3.4M7).
I suppose indeed that there is a problem with Subversion integration at large (I use Subclipse preferablyà. I quickly saw some 
indications in one existing workspace's log I unsuccessufully tried to load on Windows about subversion issue. I will retry later by 
importing projects one by one...


On a fresh new Linux installation (only the OS Ubuntu 8.04 up to date so far) I was not even able to launch Eclipse 3.4 :(. I used 
the J2EE distro.

I did not try yet on my dual boot dev machine with Ubuntu LTS 6.06 (I think I'm 
still using Eclipse 3.3.1 on this machine)

I will let you know, how it's going. It seems that there is something wrong in this release, it was so easy to switch from M2 to M3 
then M4 and finally M7...


Jacqiues

From: Jacopo Cappellato [EMAIL PROTECTED]

Jacques,

are you using a plugin for SVN in Eclipse 3.4? I tried with the  subversive 
plugin but it didn't work for me (but chances are I
did  something wrong).

Jacopo

On Jun 26, 2008, at 11:34 AM, Jacques Le Roux wrote:


BTW Eclipse 3.4 is out, I use it from the 3.4M2 release (August  2007). In my 
opininon it's really better than any versions
before.  Not only in term of features but also *stability* (at least on  
Windows, I did not have many issues - if any - on Linux
before).

Jacques

From: Ashish Vijaywargiya [EMAIL PROTECTED]

I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.
--
Ashish
On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

I just noticed that Freemarker 2.4 is not yet available
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should  preferably
use this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ? exists and

?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some  more
features (mostly dealing with false also). If we don't do it  now, maybe in
a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !)  it's not a
big deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]


+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

Hi All,


Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques
















Re: Freemarker deprecated built-ins

2008-06-27 Thread Jacques Le Roux

The current builtins work well and are easy to read. I finally decided to do 
nothing. We will see if ever it's needed.

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]
Hi All,

Why do you think about updating all our templates following  
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques


Re: Freemarker deprecated built-ins

2008-06-26 Thread Jacques Le Roux

I did it locally, but I wonder now if it's a good idea since ?exists and 
?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some more features (mostly dealing with false also). If we don't do it 
now, maybe in a future we will have to do it. It's a 10 min work anyway...


I think that as soon as you are used to them (I mean ?? and !) it's not a big 
deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]

+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:


Hi All,

Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques






Re: Freemarker deprecated built-ins

2008-06-26 Thread Jacques Le Roux

I just noticed that Freemarker 2.4 is not yet available 
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should preferably use 
this version as explained in the link below.
We may wait for 2.4 to do this one...

BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE : http://www.jboss.org/tools/download/index.html (i used the 
http://download.jboss.org/jbosstools/updates/stable link)


Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ?exists and 
?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some more features (mostly dealing with false also). If we don't do 
it now, maybe in a future we will have to do it. It's a 10 min work anyway...


I think that as soon as you are used to them (I mean ?? and !) it's not a big 
deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]

+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:


Hi All,

Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques








Re: Freemarker deprecated built-ins

2008-06-26 Thread Ashish Vijaywargiya
I am also using the Freemarker plugin distributed by Jboss.
Its working fine for me.

--
Ashish

On Thu, Jun 26, 2008 at 5:06 AM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

 I just noticed that Freemarker 2.4 is not yet available
 http://freemarker.sourceforge.net/freemarkerdownload.html
 It's not needed for the 1st builtin replacement but we should preferably
 use this version as explained in the link below.
 We may wait for 2.4 to do this one...

 BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE :
 http://www.jboss.org/tools/download/index.html (i used the
 http://download.jboss.org/jbosstools/updates/stable link)

 Jacques

 From: Jacques Le Roux [EMAIL PROTECTED]

  I did it locally, but I wonder now if it's a good idea since ?exists and
 ?if_exists are more readable than ?? and !
 ?exists and ?if_exists still work and and only ! is bringing some more
 features (mostly dealing with false also). If we don't do it now, maybe in
 a future we will have to do it. It's a 10 min work anyway...

 I think that as soon as you are used to them (I mean ?? and !) it's not a
 big deal, but  please express yourself

 Thanks

 Jacques

 From: Vikas Mayur [EMAIL PROTECTED]

 +1

 Vikas

 On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
 [EMAIL PROTECTED] wrote:

  Hi All,

 Why do you think about updating all our templates following
 http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
 At least the second and the third could be done automatically.

 Jacques







Re: Freemarker deprecated built-ins

2008-06-26 Thread Jacques Le Roux

From: Jacques Le Roux [EMAIL PROTECTED]

I just noticed that Freemarker 2.4 is not yet available 
http://freemarker.sourceforge.net/freemarkerdownload.html
It's not needed for the 1st builtin replacement but we should preferably use 
this version as explained in the link below.
We may wait for 2.4 to do this one...


Ooops, this remark makes no sense forget it. I understood Freemarker explanation the wrong side. Actually the deprecated ?default 
builtin will behave better in future. Those guys are serious : they enhance deprecated builtins ;o)


Jacques


BTW there is a new Eclipse Freemarker plugin from RedHat/JBoss IDE : 
http://www.jboss.org/tools/download/index.html (i used the
http://download.jboss.org/jbosstools/updates/stable link)

Jacques

From: Jacques Le Roux [EMAIL PROTECTED]

I did it locally, but I wonder now if it's a good idea since ?exists and 
?if_exists are more readable than ?? and !
?exists and ?if_exists still work and and only ! is bringing some more features 
(mostly dealing with false also). If we don't do
it now, maybe in a future we will have to do it. It's a 10 min work anyway...

I think that as soon as you are used to them (I mean ?? and !) it's not a big 
deal, but  please express yourself

Thanks

Jacques

From: Vikas Mayur [EMAIL PROTECTED]

+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:


Hi All,

Why do you think about updating all our templates following
http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
At least the second and the third could be done automatically.

Jacques










Re: Freemarker deprecated built-ins

2008-06-24 Thread Vikas Mayur
+1

Vikas

On Mon, Jun 23, 2008 at 10:56 PM, Jacques Le Roux 
[EMAIL PROTECTED] wrote:

 Hi All,

 Why do you think about updating all our templates following
 http://freemarker.sourceforge.net/docs/ref_depr_builtin.html ?
 At least the second and the third could be done automatically.

 Jacques


Re: Freemarker Timestamp rendering - Developers Take Note

2008-06-06 Thread Ashish Vijaywargiya
+1.

On Wed, Jun 4, 2008 at 7:48 PM, Adrian Crum [EMAIL PROTECTED] wrote:

 I just noticed in a Freemarker template file something like:

 ${someTimestamp.toString()}

 There is a problem with that. Freemarker will call the Timestamp object's
 toString() method - which will output the date and time in the server's time
 zone and locale, NOT the user's.

 It is better to eliminate the toString method call, like so:

 ${someTimestamp}

 -Adrian