Fabrizio (the lead developer on the display tag project), took my hack for supporting JSTL's SQL Tag and turned it into a nice feature. The display tag now supports Maps and you can iterate through JSTL's Results using the regular tag or the EL-enabled version. Download nightly build - now automated!
As an exercise for the NYC conference, I implemented an editable table using the display tag. It's a bit ugly, but it does work. You're more than welcome to use it and improve it. ;-) To see it, checkout the following demo pages in AppFuse:
Any feedback would be great.
For most of this week, I've been developing Velocity templates for rendering resumes in HTML and RTF (Word). Thanks for Mathias once again for showing me this was possible. The HTML part has been pretty easy, but the RTF stuff has been a bear. Mostly because I want to hide/show different sections of a person's resume based on whether they've entered information or not. In order to do this, I first created a rough draft of the RTF template in Word and then I began hand editing it with a text editor (HomeSite and BBEdit). And if you look at the RTF syntax, it's pretty damn ugly. The main thing I'm struggling with now is showing hiding rows of a table based on whether data exists or now. In HTML - it's easy - you just put your #if statement before a <tr> and you can easily hide the row. In RTF - it seems like the number of rows/columns/borders, etc. is all defined at the beginning of the table - but I can't really read the syntax well enough to understand it.
Therefore, my question is - does anyone know RTF well enough to tell me how I can hide a row? Is there something in the beginning of the table definition I can modify with Velocity #if statements? For now, I'm simply putting "Not Specified" text in rows where no data exists.
Finally, how about some RTF syntax I've learned in this process:
{\f116\fs20 = Verdana 10pt Font
The document must end with " }}" (no quotes) on the same line as the last bit of text
Escape "\n" with "\\par "
{\b\f116\fs24\cf17 = Bold, Verdana, 12pt, Ocean colored Font
How's that for a bunch of useless information! ;-)
Last night was a fun night. First of all, Mike Clark spoke about TDD development
at the DJUG and he wowed me with his presentation abilities. I think he could
have presented on just about anything and it would've been entertaining. He had
a fair amount of humor in his presentation and came off as a true Montanan (a.k.a. very cool guy).
I talked with him after the meeting as a whole bunch of us were entering Rock Bottom Brewery and
my suspicions where confirmed. I look forward to the next time I hang out with
Mike.
At Rock Bottom, it was all about drinking beer and bullshitting about Java. I sat
across from Rod Cope (Out of the Box) and next to Bruce Snyder (Geronimo/Castor). The topics
ranged from Groovy (Rod is speaking about Groovy at the Denver NFJS) to Spring
to Castor and Kids (Bruce has a little one that's a week and a half younger than
Abbie). I had a great time talking to these guys and look forward to our next
meeting. It won't be long until I see Bruce again - he's attending SD West next
week. He reminded me that next Wednesday is St. Patty's day, so since I'm part Irish -
it should be a fun night.
St. Patty's day is also both my sister and Julie's
sister's birthday - neat eh?
I didn't leave downtown until 1:00 a.m. - a great
Java-infested night it was. Thanks for the conversations and the booze folks -
I had a great time.