Search code examples
jsfjsf-2icefacesicefaces-2

Group Box in IceFaces


I want to achieve something like this in Icefaces. HTML has a legend tag which helps. Is there any way to use that tag in IceFaces ? If not, how can we do this in IceFaces ?


Solution

  • The fieldset element just represents a set of form controls, you can do this:

    <fieldset>
        <legend>Display:</legend>
        <h:selectOneRadio value="#{saveDVDBean.title}">
            <f:selectItem itemValue="gf1" itemLabel="GodFather I" />
            <f:selectItem itemValue="gf2" itemLabel="GodFather II" />
            <f:selectItem itemValue="gf3" itemLabel="GodFather III" />
        </h:selectOneRadio>
    </fieldset>