primefaces

<p:fileUpload> limiting to 2 Mb

有些话、适合烂在心里 提交于 2020-01-13 06:44:12
问题 I'm having some issues with fileUpload . It's not firing the fileUploadListener when the file is > 2 Mb. The component: <p:fileUpload id="upload" required="true" fileUploadListener="#{myBean.handleFileUpload}" fileLimit="1" requiredMessage="A file is required" fileLimitMessage="One file only" invalidFileMessage="Invalid file" cancelLabel="Cancel" label="Choose" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" /> Enviroment: JSF 2.2.3, Primefaces 4.0, Tomcat 7 Might it be some "filter" configuration

Event dateSelect on primefaces ajax in calendar not working

荒凉一梦 提交于 2020-01-13 04:32:59
问题 I have a calendar: <p:calendar id="fechaInicio" mode="inline" value="#{informesBean.fechaInicio.fecha}" pattern="#{informesBean.fechaInicio.pattern}"> <p:ajax event="dateSelect" listener="#{informesBean.limpiaLink}" update="link" /> </p:calendar> And this is my limpiaLink in informesBean : public void limpiaLink(SelectEvent event) { Date date = (Date) event.getObject(); extraido = false; System.out.print(date.toString()); } And I have a breakpoint in line Date date = (Date) event.getObject();

Dynamically assigning IDs to tags using an EL variable

依然范特西╮ 提交于 2020-01-12 23:28:45
问题 I want to loop over a number of "guests" and insert an id dynanimally <ui:repeat value="#{guestList}" var="guest"> <p:inputText id="firstname_#{guest.uniqueID}" value="" label="Firstname" /> <p:message for="firstname_#{guest.uniqueID}" /> </ui:repeat> The problem is, that the <p:message /> cannot resolve firstname_#{guest.uniqueID} javax.faces.FacesException - Cannot find component "firstname_1" in view. at org.primefaces.component.message.MessageRenderer.encodeEnd(MessageRenderer.java:41) It

primefaces tabView activeIndex issue

那年仲夏 提交于 2020-01-12 18:29:26
问题 I have Primefaces TabView with two Tab like: <p:tabView dynamic="true" cache="false" onTabShow="scrollBottom(#{stanzaBean.activeIndex})" tabChangeListener="#{messaggioBean.onTabChange}" activeIndex="#{stanzaBean.activeIndex}" > it works fine, except that when I change the Tab the activeIndex isn't updated on the Server and it returns always the default value. I'm using primefaces 2.2.1. Thank you. 回答1: Going by the PrimeFaces ShowCase example, if you give each tab an id: <p:tabView

primefaces tabView activeIndex issue

非 Y 不嫁゛ 提交于 2020-01-12 18:29:06
问题 I have Primefaces TabView with two Tab like: <p:tabView dynamic="true" cache="false" onTabShow="scrollBottom(#{stanzaBean.activeIndex})" tabChangeListener="#{messaggioBean.onTabChange}" activeIndex="#{stanzaBean.activeIndex}" > it works fine, except that when I change the Tab the activeIndex isn't updated on the Server and it returns always the default value. I'm using primefaces 2.2.1. Thank you. 回答1: Going by the PrimeFaces ShowCase example, if you give each tab an id: <p:tabView

primefaces tabView activeIndex issue

会有一股神秘感。 提交于 2020-01-12 18:28:08
问题 I have Primefaces TabView with two Tab like: <p:tabView dynamic="true" cache="false" onTabShow="scrollBottom(#{stanzaBean.activeIndex})" tabChangeListener="#{messaggioBean.onTabChange}" activeIndex="#{stanzaBean.activeIndex}" > it works fine, except that when I change the Tab the activeIndex isn't updated on the Server and it returns always the default value. I'm using primefaces 2.2.1. Thank you. 回答1: Going by the PrimeFaces ShowCase example, if you give each tab an id: <p:tabView

when i click on the p:selectBooleanCheckbox, it works but for the second click it doesn't work,why?

守給你的承諾、 提交于 2020-01-11 14:42:15
问题 I have a " p:selectBooleanCheckbox " in my xhtml page. I have inserted this code selected="true" to make it checked by default. SO when i run the page, and click for the first time it becames "unchecked" , but since then when i click on it it still unchecked , it doesn't change. So to reseume =>my p:selectBooleanCheckbox is clickable just once after that when i click on it, it doesn't change (it still unchekeced) this is the code in my xhtml page: <div class="row"> <p:outputLabel for="spec

when i click on the p:selectBooleanCheckbox, it works but for the second click it doesn't work,why?

余生长醉 提交于 2020-01-11 14:42:11
问题 I have a " p:selectBooleanCheckbox " in my xhtml page. I have inserted this code selected="true" to make it checked by default. SO when i run the page, and click for the first time it becames "unchecked" , but since then when i click on it it still unchecked , it doesn't change. So to reseume =>my p:selectBooleanCheckbox is clickable just once after that when i click on it, it doesn't change (it still unchekeced) this is the code in my xhtml page: <div class="row"> <p:outputLabel for="spec

How can I get the nested components of a <p:column> in a facelet using EL

匆匆过客 提交于 2020-01-11 13:53:32
问题 Let's say I have this: <p:column headerText="R" style=" text-align: center;" width="10" rendered="true"> <p:commandLink id="MRepShowButton" update=":form1:display" onclick="EditorDialog.show();" title="Editer le compte rendu"> <f:setPropertyActionListener value="#{exam}" target="#{dyna.selectedExamen}" /> <p:graphicImage id="img1" value="/images/study_Report_icons/Text/0.png" rendered="#{exam.examen.rapport.rapportWrittenState == null}"/> <p:graphicImage id="img2" value="/images/study_Report

Primefaces selectonemenu displaying data outside the input [duplicate]

空扰寡人 提交于 2020-01-11 13:28:31
问题 This question already has answers here : One or more resources has the target of 'head' but not 'head' component has been defined within the view (2 answers) Closed 3 years ago . I'm new to web programming and I manage to make work the proper connections so the dropdown DOES populate; I'm using Eclipse, latest JDK, Wildfly 10 server, MySQL server 5.7, Primefaces 5.3, Javax.faces 2.2. This is the page: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999