Skip to main content

Form Tag Library

So, I'm feeling pretty nerdy right now because, even though it is 11:30 PM on a Friday night, I am working on company code from my home computer for my salaried job. There really is no other benefit other than the geek factor of working on something right now that I think is pretty cool.

See, we have, over the past year, been developing a nice set of tag-libs and other form helpers to make it easier to draw up forms with appropriate validation, formatting, i18n, etc. We are currently using a utility powered by DWR for shared client/server validation, tag-libs for the formatting, and our market and locale-sensitive CMS for i18n. Put them together, and you get a whole lot of functionality for a form while keeping the form looking like what is finally generated on the page (as opposed to having a trillion scriptlets, javascript helpers, etc. scattered around until, from the jsp, you have no idea what the page will look like).

Right now, I'm working on some tag libs for higher-level components like Credit Cards and Addresses.

Sadly, since this is work, I can't get into a lot of detail, except to say that I plan to one day base an open source project off of the experience that I am gaining in developing it.

Comments

Popular posts from this blog

How Many Teeth Does The Tooth Fairy Pick Up Each Night in Utah?

Somebody asked me a question about my Tooth Fairy post the other day that got me thinking. How many baby teeth are lost every day in Utah?

I began with Googling. Surely someone else has thought of this and run some numbers, right? Lo, there is a tooth fairy site that claims that the Tooth Fairy collects 300,000 teeth per night.

That's a lot; however, when I ran the numbers, it started to seem awfully low.

Let's assume that the Tooth Fairy collects all baby teeth regardless of quality and we assume that all children lose all their baby teeth. The world population of children sits at 2.2 billion, with 74.2 million of them in the United States. Of those, approximately 896,961 of them are in Utah. This means that somewhere around .04077% of the world's children are in Utah.

If we assume that kids in Utah lose teeth at the same rate as all other children in the world and that each day in the year is just as likely as the rest to lose a tooth, then we have that of the alleged …

I don't know you from Adam OR How to Tie Yourself Back to Adam in 150 Easy Steps

Last Sunday, I was working on my genealogy on familysearch.org, a free site provided by The Church of Jesus Christ of Latter-Day Saints for doing pretty extensive family history. While looking for information about a Thomas Neal, I found an individual who had done a bunch of work on his family including is tie into the Garland family, which tied in through Thomas's wife.

So, while I was pondering what to do about Thomas Neal (who's parents I still haven't found), I clicked up the Garland line. It was pretty cool because it went really far back; it's always fun to see that there were real people who you are really related to back in the 14th century or what not.
As I worked my way back through the tree, I noticed it dead-ended at Sir Thomas Morieux, who, according to the chart, was the maternal grandfather-in-law of Humphy Garland (b. 1376).  The name sounded pretty official, so I thought I'd Google him. I learned from Wikipedia that Sir Thomas Morieux married Blanc…

Mental Math Tricks: Is this divisible by 17?

Image via WikipediaSo, most know how to tell if something is divisible by 2 or 5, and many know how to tell if something is divisible by 9. What about other numbers?

So, here are strategies for discovering divisibility from 2 to 10, and then we'll talk about some rarer, more surprising divisibility tricks:

Divisible by two:If the number ends in 0, 2, 4, 6, or 8, it is divisible by 2.

Divisible by five:If the number ends in 0 or 5, it is divisible by 5.

Divisible by ten:If the number ends in 0, it is divisible by 10.

Divisible by nine: If you add all the digits in a number together and that new number is divisible by 9, then it is also divisible by 9.

Example #1: 189 -> 1 + 8 + 9 = 18, 18 is divisible by 9, so 189 is also divisible by 9
Example #2: 137781 -> 1 + 3 + 7 + 7 + 8 + 1 = 27, 27 is divisible by 9, so 137781 is also divisible by 9
(Note: If adding six numbers together in your head seems difficult, look for my next post on number-grouping tricks. Soon, adding six numbe…