Teething troubles

Tim Pizey <[email protected]>
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <CAArDntgsWTOWVPM=dFRxy8zUi1X9M-T0AGGskKra63c8M5mTRw@mail.gmail.com>
Hi,

I am trying to enable some old software to use Freemarker in addition
to Velocity.
I am developing on Ubuntu/Eclipse.

I am sorry to rush straight to the developer list, in my first 48
hours of Freemarker use,
but I could not find an IRC channel.

I have used the binary cavalary.jar from
http://freemarker.sourceforge.net/usCavalry.html
to convert my velocity templates.
This has left me with Velocity style variables eg
${table.TableInfo.Category.Name}
>From the above page: "Also note that FreeMarker uses the Java built-in
Beans introspection, so - contrary to Velocity - it completely adheres
to introspection rules."

It also converts colours into tags: <body bgcolor="<#call dddddd>" id="top">.
I am unable to contribute fixes as this code is not in the source tree.

So my current hope is to modify BeansWrapper to understand Velocity
style bean notation.
I have checked out the source: in Eclipse I had to change the
configuration to only warn on
restricted access.

Building from source
I documented my fix for ant/ivy on ubuntu at:
 http://stackoverflow.com/questions/1066976/building-freemarker-from-source

However the build still fails with unresolved dependency on
http://repos.zeroturnaround.com/maven2/org/zeroturnaround/javarebel-sdk/1.2.2/javarebel-sdk-1.2.2.jar
This may be because public access to http://repos.zeroturnaround.com/
has been turned off.

My main motivation is to be able to use beans such as
${table.TableInfo.Category.Name}  to access a java object which I have
placed in the root (context)
with a name of table and for
table.getTableInfo().getCategory().getName() to be discovered in that
object.

Which direction should I turn?

cheers
Tim












-- 
Tim Pizey
http://pizey.net/~timp

------------------------------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.