Re: Teething troubles
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Friday, March 9, 2012, 11:14:27 AM, Tim Pizey wrote:
[snip]
>> Don't do that... BeansWrapper uses standrad JavaBeans rules. Changing
>> that would be rather annoying for anyone who wants to work with the
>> templates later.
>
> Sure, I do not intend to replace, but to extend into my own
> VelocityBeanWrapper. (though I think there may be others who would
> like to be able to use both Sun and Velocity method notation)
Maybe I'm missing something here. Do you actually have
${table.TableInfo.Category.Name} with all those capital letters in the
Velocity templates? That would be incredibly... strange. Or what else
is the difference?
Also, you can possibly just extend BeansWrapper with subclassing (as
opposed to modifying the source code). If you indeed have some naming
convention mismatches, and you are sure that you don't want to fix
those in the templates instead, note the
BeansWrapper.finetuneMethodAppearance method.
>>> I have checked out the source: in Eclipse I had to change the
>>> configuration to only warn on restricted access.
>>
>> Um... what's that again?
>
> Apparently since java 1.5 overriding methods from classes in RT.jar
> gives a problem. This can be overridden in eclipse by settting
Preferences>> Java>Compiler>Errors/Warnings>Deprecated and Restricted
API>> Forbidden reference(access rules) to warning rather than error.
>
>>> Building from source
>>> I documented my fix for ant/ivy on ubuntu at:
>>>
>>> http://stackoverflow.com/questions/1066976/building-freemarker-from-source
>>
>> The current production version of FreeMarker, 2.3.x, with doesn't use
>> Ivy. Please use the SVN repo, not GIT. GIT contains 2.4, which is
>> unreleased.
>
> I was building from
> https://freemarker.svn.sourceforge.net/svnroot/freemarker/trunk/freemarker
Ah... that. That's FM 3.0, a dead branch, apparently. I will mark it
like so. Sorry for the confusion.
> so I should be using
> https://freemarker.svn.sourceforge.net/svnroot/freemarker/branches/2.3/freemarker
[snip]
Yes.
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/