PrimeFaces dataTable column commandButton.update 2016年5月20日 | Leave a comment 问题: <p:messages id="msg" /> <p:dataTable> <h:column> <p:commandButton update="msg" /> </h:column> </p:dataTable> 123456 <p:messages id="msg" /><p:dataTable><h:column><p:commandButton update="msg" /></h:column></p:dataTable> 提示 找不到 msg 解决: [cr… Read More
PrimeFaces 如何手工控制 blockUI 2016年5月20日 | Leave a comment 问题: datatable column 中的commandButton 不会自动触发 blockUI 设置了… Read More
Netbeans 编辑器中显示红色有错,但是编译能通过 2016年5月19日 | Leave a comment 问题: Netbeans 编辑器中显示红色有错,但是编译能通过 解决: 清除缓存不行,清理构建也… Read More
JPA 事务中的自增id 2016年5月17日 | Leave a comment 问题: 代码如下,e1.getId() 不行 EntityManager em = **** EntityTransaction trans = em.getTransaction(); trans.begin(); em.persistence(e1); System.out.println(e1.getId());//not work e1. getId() is null e2.referId=e1.getId(); em.persistence(e2); trans.commit(); 12345678 EntityManager em = ****EntityTransaction trans = em.getTransaction();trans.begin();em.persistence(e1);System.out.println(e1.getId());//not work e1. getId() is nulle2.referId=e1.getId();em.persistence(e2);trans.commit(); … Read More
jsf c:if 在datatable 中不起作用 2016年5月13日 | Leave a comment 问题: jsf c:if 在datatable 中使用row 变量 不起作用 如: [crayon-6628d… Read More
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “startDate” (class **** ), not marked as ignorable 2016年5月6日 | Leave a comment 问题: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "startDate" (class **** ), not marked as ignorable 1 com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "startDate" (class **** ), not marked as ignorable &nbs… Read More
JSF h:commandButton绑带的参数传过去的值不对 2016年4月26日 | Leave a comment 问题: 解决: p:accordionPanel 有问题,改成 u… Read More
JSF javax.faces.view.ViewScoped & javax.faces.bean.ViewScoped 差别 2016年4月25日 | Leave a comment 问题: 解决: javax.faces.bean.ViewScoped:是用于 @… Read More
JSF viewParam 失效 2016年4月22日 | Leave a comment 问题: <f:viewParam name="id" value="#{bean1.id}" /> <f:viewParam name="date" value="#{bean1.date}" /> 12 <f:viewParam name="id" value="#{bean1.id}" /> <f:viewParam name="date" value="#{bean1.date}" /> url 中已经有 id=222&am… Read More