我似乎遇到了一个问题,我在 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。
我也尝试过<h:form>
在 commandLink 周围添加一个,但是,这甚至比没有它的要少。我实际上认为这是因为 commandLink 位于<h:form>
打开 popupPanel 的链接所在的内部。
无论如何,有人可以指点我为什么动作不火的方向吗?