Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>

1 Answers

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>
like image 108
fareed Avatar answered Jan 26 '26 17:01

fareed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!