primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
283 stars 125 forks source link

TabView - support for hash nagivation #231

Open djmj opened 8 years ago

djmj commented 8 years ago

When defining tabs in a TabView we add an anchor like <a href="#tab1">.

This anchor is not changing the url of the browser (does not updates the hash), as regular anchors do. That results in missing browser history and decreases usability.

Back and forth browser buttons navigating trough visited tabs is a nice navigation feature to increase usability. Especially if a lot of content is shown on tabs.

Further if anchor #tab1 is present the tabView should automatically display that tab (set its activeIndex to the one representing that tab).

If implemented maybe toggle this feature using separate boolean attribute.