Early this morning, I published Mojarra Scales 1.3.1. I’ve been remiss in making good updates where when I make release, so, rather than creating a new post for each release long after the fact, I’ll try to being everyone up to the current state in just one.
In case I haven’t mentioned this (it’s really late here, and I honestly don’t remember : ), Scales is now available via the java.net Maven 2 repository. The dependency element looks like this:
One of the things I’ve disliked about the build for the longest time was its dependence on Java 5. This was due to a very odd bug regarding the ant-run plugin, apt, and Java 6. I had never been able to track it down, so I just noted the Java 5 requirement and moved on. I finally got tired of it, and removed the need for apt, which was the annotations that produced the JSF metadata. This change, while certainly fixing the build system, brought another important, and not wholly distasteful change: the removal of JSP support. The XML for custom UIComponent`s in both `faces-config.xml and taglib.xml is not that onerous (though I’ll be happy to see it go in JSF 2 ; ). The TLD (and Tag class) required for JSP, however, is truly awful. Since fewer people are using JSP these days, and that it is all but deprecated in JSF 2, I decided not to reproduce all the JSP support metadata manually and just drop it altogether. If you’re using JSP, I know this may not be good news, but you really should be using Facelets anyway. :)
I’ve also removed the dependency on JSFTemplating, which was being used for template-based Rendering. While the feature was nice for me, I had personally run into issue with the dependency in applications (e.g., JSFTemplating was processing my views and not Facelets. While that’s fixable, it’s a hurdle I’d rather not require). Furthermore, many of the components were using Java-based `Renderer`s anyway, so I decide to convert the others and remove the extra dependency. This allowed me to reorganize and clean up a lot of code.
I also introduced the use of FacesTester, which I’ve mentioned here a couple of times. While FacesTester is still young and maturing, it has allowed me to test for certain classes of bugs, namely, I can easily insure that all components render correctly, and that UIInput components behave correctly on POST-back. I also test that the state saving code is accurate and complete for each component. In addition, I’m slowly expanding the suite of tests to cover as much of the library as possible, which is good for both libraries. In addition, I’ve added the use of Cobertura to help track and analyze unit test coverage, and Hudson for continuous integration.
In addition to those "big ticket items," here’s a quick run down of some other smaller changes, in no particular order:
Bug fix in Layout rendering and handling
Added a helper function (getLayout()) to acquire a handle to a specific LayoutManager instance
Do not render LayoutUnits if rendered=false
Added the YUI compressor to the build. This saved up to 53% on some files
Got rid of that ugly blue background on sc:layout
I think that covers the highlights. If there are any issues I’ve missed or features you’d like to see, please feel free to open an issue, and I’ll get to it as quickly as I can. :)