Recent Blog Comments By George Bridgeman

I wasn't particularly clear :s GetPageContext() returns an object that gives the page the tools it needs to do its job... things like the request, response, scopes, session, etc. Each template will have its own page context as it has its own scopes, attributes, etc, so you get the same object ret... read more »

It is indeed page specific. The clue is in the name ;) To get the underlying request object, do GetPageContext().getRequest() The page context is a PageContext java object. Look at the javadoc here: http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/jsp/PageContext.html George.... read more »

You've only got one object. The practice. I don't think you need your join table at all. Just add a parentid column to your practice table. Using that, if you're after all the children records for a given practice, you can do something like: select ... from practice where practice.parentid = &lt... read more »

I ported a Perl script to CF to generate a colour cube for a specified number of colours. It'll generate a nice gradient of colours for you and use the brightness test on the W3 site to decide whether to colour the text black or white. I needed this to make sure that no two colours on my treemap gra... read more »

Interesting way of solving the problem! I was in a similar scenario a while ago when I needed to generate a colour palette containing potentially any number of colours, each with enough contrast from the others, to fill regions on a treemap. I had the same problem with figuring out the best colour ... read more »