0

I need to create the custom component as SelectOneRadio, but it should not has wrapper <table> But, <ul>, <li> for example. How I can specify the type of wrapper, ul, table or something else, when creating JSF custom components?HtmlSelectOneRadio example

Evgeny Mironenko
  • 389
  • 3
  • 5
  • 26

1 Answers1

1

There seems to be a conceptual misunderstanding. There's no such thing as "wrapper" in this context. HTML is just generated by the Renderer associated with the UIComponent. If you'd like to change the generated HTML representation, just supply your own custom Renderer.

That said, it's advisable to learn JSF by a decent book so that you get the basic concepts properly right from the beginning on. Creating custom components is already covered in such a book.

See also:

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • I meant wrapper as not java or JSF definition. But thank you for advice, I feel the realy knowledge gap. As always great answer, @BalusC, thank you :) – Evgeny Mironenko Aug 18 '14 at 08:04