【发布时间】:2011-10-17 17:23:17
【问题描述】:
我似乎遇到了一个问题,我在 rich:popupPanel 上有一个 a4j:commandLink 但操作没有触发。 xhtml 如下所示:
<rich:popupPanel id="rate-panel" modal="true" height="444" width="780" top="60" show="false" onmaskclick="#{rich:component('rate-panel')}.hide()" styleClass="cs-modal">
/**Some html here**/
<a4j:commandLink immediate="false" action="#{venueScore.up}" render="rate-panel" styleClass="rate love">
<span>Love it</span>
</a4j:commandLink>
/**Some more html here**/
</rich:popupPanel>
托管 bean 如下所示:
@Named("venueScore")
@ViewScoped
public class VenueScoreManager extends BaseManager implements Serializable {
public void up() {
System.out.println("TEST");
//Do something
}
}
我已经创建了托管 bean @ViewScoped。
我也尝试在 commandLink 周围添加一个<h:form>,但是,这甚至比没有它的情况还要少。我实际上认为这是因为 commandLink 位于打开 popupPanel 的链接所在的<h:form> 内。
无论如何,有人可以指出为什么动作不触发的方向吗?
【问题讨论】:
标签: jsf-2 richfaces cdi jboss-weld commandlink