Java Notes From My Desktop

Tags - Categories : All | Articles | Book Reviews | CSS | Java | Javaranch | Javascript | News | Opengl | Opinions | Personal | php

I found out the hard way today that in order to set the float style for an element in javascript, you can't use:

element.style.float

because float is a reserved word, bla bla. Fine and dandy. So I look up what I need to use instead. Found the standards way:

element.style.cssFloat

But wait...It doesn't work in IE. In IE I have to use their type:

element.style.styleFloat

IE is such a POS. Anyway, thought I might save someone else from having to dig around for it.

Norman Richards recently posted an article in response to a comment made by Joseph Ottinger when he presented my article on TSS:

"What is interesting about JSF is not that it is a great framework by itself. JSF is interesting because it is a great framework for building a web framework. I would compare it to the Servlet specification. Servlets are rather dull little beasts. The API is entirely un-clever, and nobody in their right mind would use to build an application with. Yet, even though almost nobody every writes a doGet() or doPost(), we all use the Servlet spec every day because every single web framework is built upon it. It handles the most mundane part aspects of request-processing, leaving the real work of being a web framework to ... the web frameworks."

I have no problem believing this statement. The problem I guess I have is that is not how JSF was promoted on thrown at us. JSF was touted as the latest and greatest in web frameworks. What's nice about the Servlet spec is how low level it is. Building a framework on top of the Servlet specification makes sense. I believe in that. Building a framework on top of a framework? Something about that just seems wrong. Not wrong in that it's being done. Wrong in that it was designed this way.

However, a lot of developers are liking the Seam+Facelets+whatever else combo so, more power to them. If they are paying the bills with it, who am I to argue. I'll continue to use Stripes, until something better comes along or it proves to be a square peg for a round holed project.

I wrote a short FAQ on how to proxy between Apache Httpd and Tomcat in case anyone is interested.

There has been a pretty good discussion on JavaRanch about JSF recently and the original poster was a bit dismayed at JSF's current state. Several alternatives were suggested as well as proponents for JSF jumping in claiming that JSF is "good enough". It's Interesting that a lot of the comments from JSF proponents in several threads I've been keeping an eye on were things like "...it has it's issues but..." and "...a workaround for that is...".

Read more...

I knew that I had to be a super villian.

Read more...