【问题标题】:Line Break between two radio buttons两个单选按钮之间的换行符
【发布时间】:2013-06-13 01:10:23
【问题描述】:

我在 JSF 2.0 中有以下代码

<h:selectOneRadio value="#{StageGate.sketchesSG002006Decision}" onclick="validateMyRadioButton()" id="radio26">
    <f:selectItem itemValue="Accepted" itemLabel="Accepted" id="accepted"/>
    <f:selectItem itemValue="Rejected" itemLabel="Rejected" id="rejected"/>
</h:selectOneRadio>

我的输出为

0 接受 0 拒绝

但我想要像这样的输出

0 接受

0 拒绝

【问题讨论】:

    标签: html jsf-2


    【解决方案1】:

    您只需将此属性添加到您的标签:

    layout="pageDirection"
    

    更多信息:


    如果您需要自定义布局(例如在自定义表格中集成单选按钮),您应该使用t:selectOneRadio

    更多信息:

    【讨论】:

    • 假设如果我想要正确对齐的 dis 单选按钮意味着我应该怎么做?
    猜你喜欢
    • 1970-01-01
    • 2011-11-02
    • 2012-02-25
    • 1970-01-01
    • 2019-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-30
    相关资源
    最近更新 更多