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
你把你的命令组件放在一个表单里面吗? –
'