New PrimeFaces ColorPicker
April 27, 2011 4 Comments
Old PrimeFaces ColorPicker wasn’t lightweight as I wanted it to be, it was requiring many resources to be loaded on the page and it was YUI based which we try to replace with jQuery as I’ve explained before. 3.0.M2 has a new colorPicker built on top of jQuery ColorPicker plugin with various PrimeFaces extensions to make it play nice with JSF programming model. Notable improvements of new colorPicker over old one are;
- New display modes, inline and popup
- Uses simple hex values instead of java.awt.Color
- Improved style selectors
- Can be updated with Ajax
See PrimeFaces Labs to see new ColorPicker in action!