1

我正在尝试使用 aselectOneRadio重绘我的一些组件(即启用/禁用它们)。我试过只使用我的selectManyCheckbox; 没用。我也试过把selectManyCheckbox里面的h:panelGroup; 也没有工作。我很确定我的标签是正确创建的,因为我不知道它还能如何工作。

这是我到目前为止所拥有的:

    <tr:selectOneRadio id="useFilterChoices" value="#{randomCardBean.useFilters}">
        <f:selectItem itemLabel="All Cards" itemValue="allCards"/>
        <f:selectItem itemLabel="Filter By Category" itemValue="someCards"/>
        <f:ajax event="click" render="categoryChoicesBox"/>
    </tr:selectOneRadio>

    <tr:selectManyCheckbox id="categoryChoicesBox" disabled="#{randomCardBean.filterDisabled}" value="#{randomCardBean.selectedFilters}">
        <f:selectItems value="#{randomCardBean.filterChoices}"/>
    </tr:selectManyCheckbox>

我使用 selectOneRadio 是因为我希望最终能够扩展过滤器选项。对此的任何帮助将不胜感激!

4

0 回答 0