嗨,我在 jsf 环境中是新人,我正在尝试更新 primefaces 咆哮,然后从 commandButton 操作重定向到页面。
<p:commandButton value="Guardar" action="#{AgendamientoMBean.procesaAgendamientoJ()}"
update="growlDetalle" />
托管 bean 代码
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, descripcion, detalle));
....
....
return "agp_bandeja_citas_llamadas?faces-redirect=true";
这只会将我重定向到页面,但不会向我显示咆哮消息,我测试了如果将我的方法更改为不返回页面,消息确实会显示..
我试图更新我重定向的页面的咆哮,但我猜那是不可能的。
我认为重定向时我失去了更新功能,因为我现在在新页面中。
有没有办法告诉 jsf 先做更新然后重定向?
希望你能帮助我,提前谢谢