user2461568
user2461568

Reputation:

How to display horizontal p:selectOneRadio pimefaces

i do this the radio button is diplying vertical, I want to display vertically.

<p:selectOneRadio id="operation" value="#{tradingMobileBean.selectedOperation}">
                        <f:selectItems value="#{tradingMobileBean.listOperation}" />
                        <p:ajax event="change" process="@this" listener="#{tradingMobileBean.operationChangeListner()}" update="stockname" />
 </p:selectOneRadio>

Upvotes: 3

Views: 9203

Answers (1)

fareed
fareed

Reputation: 3072

Add layout attribute with value pageDirection which will give the vertical layout. The default value is lineDirection which gives you the horizontal layout.

<p:selectOneRadio layout="pageDirection" id="operation" value="#{tradingMobileBean.selectedOperation}">
     <f:selectItems value="#{tradingMobileBean.listOperation}" />
     <p:ajax event="change" process="@this" listener="#{tradingMobileBean.operationChangeListner()}" update="stockname" />
</p:selectOneRadio>

Upvotes: 10

Related Questions