TabView Enhancements

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 closable option to true. There is also an optional tabClose ajax behavior provided as a callback similar to tabChange.

Demo of Closable Tabs

8 Responses to TabView Enhancements

  1. Daniel says:

    Wow!

    Useful….

  2. prime.fan says:

    Very cool.

    I’d just like to point out: it’s NOT working in Firefox as of now (your LAB-Showcase). I’m sure it will work when released, though.

  3. Make sure to clean your browser cache when visiting Labs.

  4. James says:

    U ROCK!
    exactly what I needed!

  5. Clément says:

    Very cool! Great job!

  6. prime.fan says:

    Ops, my bad. Of course it works in Firefox!

    Primefaces rocks! I can’t wait for the 3.0 release!
    Keep up the fantastic job!

  7. Hugo says:

    Hi Cagatay,
    Very cool!

    Is some deadline to publish the 3.0 realease?

    []´s

  8. It is due end of August, we’ll see how it goes🙂

%d bloggers like this: