Moin Zaman
Moin Zaman

Reputation: 25455

is there a tab control in RichFaces or JSF that doesn't render ugly nested tables?

The RichFaces 3.3.3 tabPanel control that I'm currently using renders 4 level nested tables. Is there any other tab control to render clean HTML or atleast allow me to control it? Like a <ul> ?

Upvotes: 0

Views: 860

Answers (2)

Max Katz
Max Katz

Reputation: 1582

RichFaces 4 will be switching to div's for layout in many components.

Upvotes: 0

Romain Linsolas
Romain Linsolas

Reputation: 81647

This kind of ugly code (and it is not only related to the <rich:tab> component) is used in order to assure a compatibilities and identical behaviors among all browsers, including all IE (and IE6 also), Firefox, Safari, Chrome, and so on...

That's why the HTML code, as well as the Javascript code, is not optimized by the Richfaces components.

If it is a problem for you, you can try to use your own components (some examples have been provided by org.life.java).

Eventually you can also simulate this behavior with buttons and some Javascript (that will hide or show different panels) or using one <a4j:commandButton> per tab to refresh the content of a basic panel.

Upvotes: 1

Related Questions