primefaces

Primefaces p:selectManyCheckbox doesn't work with c:forEach and f:selectItem

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 12:56:19
问题 How to use these tags together as now they don't work: <p:scrollPanel mode="native" style="height: 200px;"> <p:selectManyCheckbox id="groups" value="#{myBean.selectedGroups}" layout="custom" > <c:forEach items="#{myBean.myGroups}" var="group" > <f:selectItem itemValue="#{group.id}" itemLabel="#{group.name}"/> </c:forEach> </p:selectManyCheckbox> </p:scrollPanel> I want to do this to put each <f:selectItem/> inside of the <li></li> later. Additional details: xmlns:c="http://java.sun.com/jsp

How to do a dataTable containing a subtable with Primefaces in the same row? What's doing with mine?

断了今生、忘了曾经 提交于 2019-12-25 12:44:08
问题 Look at the behavior of my table, I want that the lines of field email appear inside of the field Email and not like that show in the image... Can anyone help me? 回答1: use <ui:repeat> over your email list, and print them inside e-mail column. <ui:repeat var="email" value="#{user.emailList}"> #{email} <br/> </ui:repeat> 来源: https://stackoverflow.com/questions/9982944/how-to-do-a-datatable-containing-a-subtable-with-primefaces-in-the-same-row-wha

Primefaces UI issue with Gallery Film strip

霸气de小男生 提交于 2019-12-25 11:57:16
问题 I am implementing a gallery using PrimeFaces with the component p:galleria , everything works as expected but the footer (Film Strip) is shown twice. By the way, if I close and then reopen the modal dialog which contains the gallery the Film Strip displays correctly. More Information: The gallery is contained in a modal dialog PrimeFaces version: 5.3 Browsers: Chrome and IE Any help is appreciated 回答1: I have resolved this behavior with the next workaround... I had to open the external dialog

Primefaces 5.3 push fails on GlassFish 4.1

落花浮王杯 提交于 2019-12-25 11:35:17
问题 My web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp

Primefaces 5.3 push fails on GlassFish 4.1

谁说我不能喝 提交于 2019-12-25 11:34:18
问题 My web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp

groupRow attribute doesn't work correctly for some columns of p:dataTable

家住魔仙堡 提交于 2019-12-25 11:06:11
问题 My p:dataTable has 3 columns: <p:dataTable id="producaoDataTable" value="#{clienteMB.producaoList}" var="producao"> <p:column headerText="Especialidade" groupRow="true"> <h:outputText value="#{producao.modalDesc()}" /> </p:column> <p:column headerText="Dente" groupRow="true"> <h:outputText value="#{producao.dente}" /> </p:column> <p:column headerText="Procedimento" groupRow="true"> <h:outputText value="#{producao.utDesc()}" /> </p:column> </p:dataTable> While groupRow works fine for the first

groupRow attribute doesn't work correctly for some columns of p:dataTable

强颜欢笑 提交于 2019-12-25 11:06:04
问题 My p:dataTable has 3 columns: <p:dataTable id="producaoDataTable" value="#{clienteMB.producaoList}" var="producao"> <p:column headerText="Especialidade" groupRow="true"> <h:outputText value="#{producao.modalDesc()}" /> </p:column> <p:column headerText="Dente" groupRow="true"> <h:outputText value="#{producao.dente}" /> </p:column> <p:column headerText="Procedimento" groupRow="true"> <h:outputText value="#{producao.utDesc()}" /> </p:column> </p:dataTable> While groupRow works fine for the first

How to use p:ajax oncomplete event on p:fileUpload. Getting error when using

流过昼夜 提交于 2019-12-25 10:02:40
问题 I am using PrimeFaces 2.2. I am using p:fileuplaod, when fileUploads then using update i change the image on my page. Here it is. <p:fileUpload id="countryFlag" widgetVar="uploader" description="Image" update="Flag" allowTypes="*.jpg;*.png;*.gif;*.jpeg;" auto="true" fileUploadListener="#{countryPages_Detail.imageUpload}"> <p:ajax oncomplete="test('Flag')" /> </p:fileUpload> <p:graphicImage id="Flag" value="#{countryPages_Detail.imagePath}" width="80" height="50" cache="false"> <f:event type=

How to use p:ajax oncomplete event on p:fileUpload. Getting error when using

牧云@^-^@ 提交于 2019-12-25 10:02:17
问题 I am using PrimeFaces 2.2. I am using p:fileuplaod, when fileUploads then using update i change the image on my page. Here it is. <p:fileUpload id="countryFlag" widgetVar="uploader" description="Image" update="Flag" allowTypes="*.jpg;*.png;*.gif;*.jpeg;" auto="true" fileUploadListener="#{countryPages_Detail.imageUpload}"> <p:ajax oncomplete="test('Flag')" /> </p:fileUpload> <p:graphicImage id="Flag" value="#{countryPages_Detail.imagePath}" width="80" height="50" cache="false"> <f:event type=

error@malformedXML with ajax requests in JSF

早过忘川 提交于 2019-12-25 09:26:11
问题 Context : Weblogic 12.2.1 / JSF 2.1.6 / Richfaces 4.2.2 / Primefaces 3.4 I have a JSF application that was on Weblogic 10.3.6 and that I successfully deploy on Weblogic 12.2.1. I am facing the following error after each ajax request : Received 'error@malformedXML' event from <input ... [200] undefined: undefined This error usually occurres when the component to be rendered is not present in the page but as you'll see in the following pieces of code, this is not the case : Java private int