RE: [FreeMarker-user] FW: crud screens and null.
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
|
From: Vladimir O. <VO...@ci...> - 2006-05-09 17:56:50
|
Well, that's the thing that it won't work:
${cellify(xxx)} will throw exception if 'xxx' is undefined. The only
feasible solution might have been ${cellify(xxx?default(''))}.
Readable?.. Not really. [#escape] directive helps here, but it's not
always that one can use it.
-----Original Message-----
From: fre...@li...
[mailto:fre...@li...] On Behalf Of Joel
Shellman
Sent: Tuesday, May 09, 2006 11:26 AM
To: fre...@li...
Subject: Re: [FreeMarker-user] FW: crud screens and null.
> In other words, it would have been very useful to have some special=20
> notation to replace empty strings with default values.
Isn't this what macros and functions are for?
${cellify(xxx)}
Create your own function and isn't it that easy?
And this is likely a candidate for a general library of functions as is
being discussed on a different thread.
Freemarker is already very powerful, it seems to me we should be careful
of proliferation of syntax and take advantage of its existing power.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=120709&bid&3057&dat=121642
_______________________________________________
FreeMarker-user mailing list
Fre...@li...
https://lists.sourceforge.net/lists/listinfo/freemarker-user
|