我对 RichFaces 和创建链接列表有疑问。如果您尝试在列表中使用任何类型的 commandLink(我尝试过 ui:repeat 和 rich:list),则不会调用该链接上的操作。我也尝试过 commandButton 和它们的 a4j 变体。我在 Jboss 6 上使用 JSF 2、RichFaces 4。
<rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status">
<h:form>
<h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" />
</h:form>
</rich:list>
表格的位置也无关紧要。
<h:form>
<rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status">
<h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" />
</rich:list>
</h:form>
如果我只有链接本身(没有列表),它就可以工作。
任何帮助将不胜感激。