Top

Blog

PrimeFaces / Blog (Page 56)

PrimeFaces TabView receives an update for 3.0.M3, there were two popular requests from PrimeFaces Community; Dynamic number of tabs There are cases where you can't know the number of tabs to display, suppose you have a collection and you need a tab for each data. ui:repeat and c:forEach can't help much here so we've added this as a built-in feature. Demo of Dynamic Tabs Closable Tabs Just like browser tabs, a PrimeFaces tab can be closed, you just need to set...

PrimeFaces is built around the following principle. "A good UI component should hide complexity and provide flexibility". When complexity is hidden, it is easy to lose the flexibility since you as page author not in control. Callbacks are a great to provide flexibility, a case in point is column resizing. Hide the Complexity Just set resizableColumns attribute to true and voila! your columns are resizable. Provide Flexibility There is an optional ajax behavior called colResize that is triggered when a...

New Component of PrimeFaces called Sheet brings excel to JavaServer Faces, it is a component that mimics the core functionality of spreadsheet desktop applications like excel and openoffice. Notable features are; Incell editing Multiple selection support via meta/shift keys Bulk Updating Frozen headers Vertical/Horizontal Scrolling Global editor Resizable Columns Ajax Sorting Keyboard navigation Theme Aware Beta Demos are available at PrimeFaces Labs. Note that sheet is designed to be a lightweight component, although we have plans to add new features like fx support, excel-odp export, a feature like...

One of the most popular feature requests we get from PrimeFaces community is the horizontal scrolling for datatable to deal with many columns, before 3.0.M3 we had vertical scrolling and now we have x, y and xy scrolling; Implementing this is quite easy, you just need to; Set scrollable option to true in datatable Provide fixed widths to your columns Use scrollHeight/scrollWidth in pixels to specify which type of scrolling you want And then we deal with the...

Spring ROO - PrimeFaces Add-On is progressing but help is needed! Attached is the message from Spring Roo Lead Alan Stewart; The Spring Roo team have started an exciting new add-on to create Roo applications with a PrimeFaces UI. We want to harness the power of PrimeFaces and JSF 2 to bring Roo users a rich UI experience like never before. As such I want to know if any enthusiastic PrimeFaces developer would like to get involved. If...

Tooltip component was far away from the PrimeFaces standards, it had serious positioning issues(see here) and had problems with ajax updates. It was based on qtip jquery plugin so in order to fix these issues to provide a production ready component, I've followed our new approach that is working quite fine which is writing a native PrimeFaces widget instead of using a third part work to have full control. So for 3.0.M3 I've rewritten the tooltip...

PrimeFaces M3 work continues with the new enhanced AutoComplete. Our old autoComplete was based on jQuery UI autocomplete which was working fine but limits us on displaying customized html content since suggestions were JSON based. So I've rewritten the autocomplete as a native PrimeFaces Widget. All features are backward compatible and css structure is slightly changed to fit PrimeFaces conventions. Various options (delay, minLength, forceSelection, maxResults ...

PrimeFaces 3.0.M3 begins with the new ThemeSwitcher component. Old themeswitcher had many shortcomings, it can't work in an offline environment since it needed a connection to load the themes and saving the selected theme on the server side was tricky. For new themeSwitcher I've created a native PrimeFaces widget as an extension of selectOneMenu that can load themes locally since it is an input component selected theme can be passes to the backing bean. Using optional...