You just put the x:selectOneRadio somewhere, and then you can put the
x:radio component wherever you want - it should be as easy as that.

Isn't there an example for that in the examples?

if not, I post my usage of this component in one of my projects below.

regards,

Martin

            <x:selectOneRadio id="rangeOrDate"
value="#{eventsFilter.range}" layout="spread">
                <f:selectItem itemValue="date" itemLabel="" />
                <f:selectItem itemValue="range" itemLabel="" />
            </x:selectOneRadio>

            <f:verbatim><td></f:verbatim>
            <x:radio for="rangeOrDate" index="0" />
            <f:verbatim></td><td
id="inputDateFilterSingleDateEntry"></f:verbatim>
            <h:inputText id="singleDate" value="#{eventsFilter.singleDate}">
                <f:convertDateTime pattern="dd.MM.yyyy"/>
            </h:inputText>
            <f:verbatim><br/></td><td></f:verbatim>
            <h:outputText value="Datumsbereich"/>
            <f:verbatim></td><td></f:verbatim>
            <x:radio for="rangeOrDate" index="1" />
            <f:verbatim></td><td id="labelDateFilterStartDate"></f:verbatim>
            <h:outputLabel for="rangeStartDate" value="von" />
            <f:verbatim></td><td
id="inputDateFilterStartDateEntry"></f:verbatim>
            <h:inputText id="rangeStartDate"
value="#{eventsFilter.rangeStartDate}">
                <f:convertDateTime pattern="dd.MM.yyyy"/>
            </h:inputText>
            <f:verbatim><br/></td><td id="labelDateFilterEndDate"></f:verbatim>
            <h:outputLabel for="rangeEndDate" value="bis" />
            <f:verbatim></td><td id="inputDateFilterEndDateEntry"></f:verbatim>
            <h:inputText id="rangeEndDate" value="#{eventsFilter.rangeEndDate}">
                <f:convertDateTime pattern="dd.MM.yyyy"/>
            </h:inputText>
            <f:verbatim><br></td><td id="inputGroupEntry"></f:verbatim>
            <h:selectOneMenu id="currentGroup" 
value="#{groupScheduleList.currentScheduleIndex}">
                <f:selectItems
value="#{groupScheduleList.groupSchedulesAsSelectItems}"/>
            </h:selectOneMenu>
            <f:verbatim>
            </td>

On 5/31/05, Jan Bols <[EMAIL PROTECTED]> wrote:
> I'm  using an x:selectOneRadio component. I want the different items to be
> rendered in 2 columns instead of 1 row or 1 column. The layout attribute
> of this component only allows for the values "pageDirection" and
> "lineDirection" which deosn't allow displaying items in 2 columns. Is
> there another solution or do I have to code my own custom component?
> 
> Jan
>

Reply via email to