0
我使用NetBeans GlassFish的commandLink動作不叫
在我.xhtml文件,有我期望調用鏈接動作shopBean.instructorScheduleById()
<p:commandLink styleClass="tooltip tour-sched"
rendered="#{shopBean.instructorSchedule!=null}"
update=":dialogFormTS" action="#
{shopBean.instructorScheduleById()}"
oncomplete="dlgTS.show()" process="@this"
ajax="true">TS<h:outputText styleClass="tooltiptext"
value="#{shopBean.instructorSchedule.name}"/>
</p:commandLink>
Bean文件
@ManagedBean(name = "shopBean")
@SessionScoped
public class ShopBean {
public ShopBean() {}
public void getInstructorScheduleById(){
System.out.println("hello");
}
}
我看着我的開發人員工具在網絡下我看到有一個Ajax請求,但當我在玻璃魚輸出上看,沒有字hello
你把你的命令組件放在一個表單裏面嗎? –
'