jsf-2.2

CellEdit event not working after cell edit in primefaces

我的梦境 提交于 2019-12-10 05:10:37
问题 I am trying to make an Editable DataTable by cell in Primefaces, but after an edit of a cell, the event not submitted and my code can't detect the newValue, and there is no error or log in the stack trace here is my code: xhtml: <p:dataTable id="ListC" value="#{recruitmentProcessMB.candidateListInProcess}" var="candid" rowKey="#{candid.idCandidate}" style="border:0px; " editable="true" editMode="cell"> <p:ajax event="cellEdit" update="ListC" listener="#{recruitmentProcessMB.onCellEdit}" /> <p

Mojarra 2.2 versions diverging

余生颓废 提交于 2019-12-10 03:01:02
问题 https://javaserverfaces.java.net/nonav/2.2/releasenotes.html lists two diverging version branches of JSF2.2 where, strangely, 2.2.8-xx seems to be more recent than 2.2.9 and above. Some bugs are fixed only in 2.2.9 (https://github.com/javaserverfaces/mojarra/issues/3384), some only in 2.2.8-xx (https://github.com/javaserverfaces/mojarra/issues/4111) and some in both versions (https://github.com/javaserverfaces/mojarra/issues/3133). Whats the reason behind this and which branch should I use in

Glassfish 4, JSF 2.2 and PrimeFaces FileUploadEvent not working together

喜欢而已 提交于 2019-12-09 18:03:16
问题 After upgrading to GlassFish 4 and JSF 2.2 Primefaces FileUploadEvent stop working. With JSF 2.1 it was working with no problem. Everything is working fine except file uploading. Is there something that I am missing? GlassFish 4 JSF 2.2 PrimeFaces 3.4.2 and 3.5 Commons io version: 2.4 Commons fileupload version: 1.3 Controller side public void handleFileUpload(FileUploadEvent event) { System.out.println("HandleFileUpload"); byte[] file = event.getFile().getContents(); newFieldset.setData(file

f:convertDateTime support for Java8 LocalDate / LocalDateTime? [duplicate]

孤者浪人 提交于 2019-12-09 17:31:46
问题 This question already has an answer here : How to use java.time.ZonedDateTime / LocalDateTime in p:calendar (1 answer) Closed 3 years ago . The JSF Core Tag f:convertDateTime can format java.util.Date objects. The Date class has many deprecated methods and with Java 8 come new classes to present local dates and times: LocalDateTime and LocalDate. f:convertDateTime can not format LocalDateTime nor LocalDate. Does anybody know, if there is an equivalent to the JSF core tag convertDateTime that

Primefaces Datatable (date column) Filter by calendar

做~自己de王妃 提交于 2019-12-09 04:55:43
问题 I am using PF 5.1. I want to filter Primefaces datatable (date column) by calendar set primefaces calendar here . Is it possible ? -Please help anybody . 回答1: For older PrimeFaces versions the solution has to be implemented like in this answer, for newe versions the other answer contains the solution. Basically, this can be achieved like this: use a hidden input field (like h:inputHidden ) in the filter facet to hide the default filter input field put a p:calendar in the header facet add a

How do I include a body into a tagfile

人盡茶涼 提交于 2019-12-09 03:03:28
I have a tagfile I intend to use as an input template: <ui:composition xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> <div class="qr"> <label>#{question}</label> <div class="helpButton"></div> <!-- body here --> <!-- errors output eventually to go here --> </div> </ui:composition> It is stored in my /WEB-INF/tags folder with a .taglib.xml and necessary web.xml context-param. I understand it could be used as follows: <g:question question="What is your name?" id="firstname"> <h

JSF 2.2 h:inputFile not working with pretty faces [duplicate]

守給你的承諾、 提交于 2019-12-08 20:33:22
问题 This question already has answers here : Fileupload and PrettyFaces and JSF 2.2 [duplicate] (2 answers) Closed 3 years ago . we're using a Glassfish 4.0 with JSF 2.2 (Mojarra 2.2.0) and PrettyFaces 2.0. When trying to upload a file using h:inputFile with the corresponding form enctype="multipart/form-data" , the form action is only fired if the page is called directy, but nothing happens if the pretty url is called. Many other questions have some similar issues (e.g. How to use PrimeFaces p

JSF 2.2 and Spring 4 and CDI on different layers without losing Spring features

孤人 提交于 2019-12-08 20:10:40
I’m a little confused after all articles that I read. I don’t want to use additional services as I’ll need if I use Weld Framework instead of simple Spring qualifier in service layer. And I have one service which uses JavaMailSender. I just want to have ability use AOP in controller layer with JSF. I got absolutely confused after reading about support JSR-229 and JSR-330 by Spring (even Spring 3) Spring 3 And JSR-330 @Inject And @Named Example Does it mean that I can do smth like that and don't lose posibility use Spring features like AOP ? (Yes, I think.) import javax.inject.Inject; import

Glassfish error Exception during lifecycle processing java.nio.BufferUnderflowException

好久不见. 提交于 2019-12-08 14:20:13
问题 Why do i get the below error Exception during lifecycle processing java.nio.BufferUnderflowException at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:151) ..... Before the error i get multiple Unknow type constant pool 0 at position65 The pool Number and Position Number changes. When i deploy the ear file it works fine, the error come only after i restart the server (either system or glassfish). Some help/tips on where to look for the problem will be very usefull. Update Please find more

Ajax reset value when validation error happens

做~自己de王妃 提交于 2019-12-08 13:35:08
问题 I have a form with a reset button. The purpose of this button is to reset the values of the form. This works fine when there are no validation errors. When there is validation error, it does not work. <h:form id="form"> <h:inputText id="v1" value="#{bean.value1}"/> <h:inputText id="v2" value="#{bean.value2}" required="true"/> <h:commandLink value="submit" action="#{bean.submit}"> <f:ajax render="v1 v2"/> </h:commandLink> <h:commandButton value="reset" action="#{bean.dummy}"> <f:ajax render="