通过 selectBooleanCheckbox 启用和禁用 selectOneMenu
我有(根据我在这里找到的其他一些答案)以下内容:
<a4j:outputPanel id="qualSelectorWrapper" ajaxRendered="true">
<h:selectOneMenu id="qualSelector" value="#{xmlCreator.qualFilename}" disabled="#{!xmlCreator.qualFileEnabled}">
<f:selectItems value="#{si:toSelectFileList(appController.directoryContents)}"/>
</h:selectOneMenu>
</a4j:outputPanel>
<h:selectBooleanCheckbox value="#{xmlCreator.qualFileEnabled}">
<a4j:support event="onclick" reRender="qualSelector"/>
</h:selectBooleanCheckbox>
不幸的是,单击复选框绝对不会执行任何操作。我做错了什么?
I have (according to some other answers I found here) the following:
<a4j:outputPanel id="qualSelectorWrapper" ajaxRendered="true">
<h:selectOneMenu id="qualSelector" value="#{xmlCreator.qualFilename}" disabled="#{!xmlCreator.qualFileEnabled}">
<f:selectItems value="#{si:toSelectFileList(appController.directoryContents)}"/>
</h:selectOneMenu>
</a4j:outputPanel>
<h:selectBooleanCheckbox value="#{xmlCreator.qualFileEnabled}">
<a4j:support event="onclick" reRender="qualSelector"/>
</h:selectBooleanCheckbox>
unfortunatly, clicking the checkbox does absolutely nothing. What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更改
为
似乎可以解决问题。
通过这个问题找到。
changing
to
seems to do the trick.
Found via this question.