primefaces

Use List for source in datatable with lazyLoading

纵然是瞬间 提交于 2019-12-25 17:17:10
问题 I have the list with very data. I want to show data in Primeface data table with lazy loading ability. now I show data normal in data Table, but it is slow. How can use lazy loading ability? XHTML File : <ui:composition template="template.xhtml"> <ui:define name="content"> <p:panel id="pnlLogInformationPage"> <h:form id="logInformation"> <div class="contentContainer-full-left"> <p:dataTable var="log" value="#{logInformationMB.logInformationList}" id="logTable" width="100%" liveResize="true">

Can I nest a composite component in itself recursively?

回眸只為那壹抹淺笑 提交于 2019-12-25 17:03:10
问题 I have DTO which contains itself (it is nested). public class MyDTO { private SomeData someData; private MyDTO nested; // getters and setters } I created composite component, which is calls itself recursively. I call it like this: <screen:my-dto-screen dto="#{myDTOBean.myDto}" /> The definition is: <composite:interface> <composite:attribute name="dto"/> </composite:interface> -- display "someData" here -- <p:panel rendered="#{cc.attrs.dto.nested != null}" /> -- this acts as recursion bottom -

Download user selected file/upload a file to a user selected directory both with primefaces

喜你入骨 提交于 2019-12-25 16:45:02
问题 I want to download user selected files with primefaces. I was able to do so for a specific file as described in the primface showcase for "file Download". But what I actually want is, that after pressing the "download Button" a file dialog should open, so the user can select a file for himself to download. Is that possible? My current code for a specific file download lokks like this: public void handleLanguageFileDownload() throws FileNotFoundException, IOException { FacesContext fc =

Render the Components after the click

China☆狼群 提交于 2019-12-25 16:44:54
问题 I want to render the data table after clicking the button submit . <p:commandButton value="Submit" action="#{MenuBean.getValues}" type="submit" partialSubmit="true" process="statemenu,dist,@this" style='font-family: font-family : Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif; font-size: 14px; font-weight: normal' update=":form:table,:form:filter"></p:commandButton> <p:dataTable id="table" value="#{DataTable.dataTable}" var="table" lazy="true" rowKey="

p:fileUpload inside p:dialog losing @ViewScoped values [duplicate]

元气小坏坏 提交于 2019-12-25 16:24:46
问题 This question already has answers here : p:commandbutton action doesn't work inside p:dialog (4 answers) Closed 3 years ago . I'm trying to update multiple files with <p:fileUpload> . After I upload the files, I set a List with the paths that works fine. After that the user then has to fill some other optional information and then click on a button(to submit the form). When the user clicks on the button all the information about the list that was done on the public void handleFileUpload

Get p:selectOneRadio value to a JS function

蹲街弑〆低调 提交于 2019-12-25 14:22:52
问题 I have a PF's selectOneRadio to choose a file type to download. Also I have a commandButton to call a download servlet using onclick attribute. The problem is that when I choose file type and click the button, the chosen value is of course not yet submitted. I'm looking for some way to get the chosen value available when I click on a download button. Here's my code: <p:selectOneRadio id="sorType" value="#{bean.type}" layout="custom"> <f:selectItem itemLabel="XML" itemValue="XML" /> <f

Get p:selectOneRadio value to a JS function

て烟熏妆下的殇ゞ 提交于 2019-12-25 14:22:32
问题 I have a PF's selectOneRadio to choose a file type to download. Also I have a commandButton to call a download servlet using onclick attribute. The problem is that when I choose file type and click the button, the chosen value is of course not yet submitted. I'm looking for some way to get the chosen value available when I click on a download button. Here's my code: <p:selectOneRadio id="sorType" value="#{bean.type}" layout="custom"> <f:selectItem itemLabel="XML" itemValue="XML" /> <f

Get p:selectOneRadio value to a JS function

谁说我不能喝 提交于 2019-12-25 14:22:27
问题 I have a PF's selectOneRadio to choose a file type to download. Also I have a commandButton to call a download servlet using onclick attribute. The problem is that when I choose file type and click the button, the chosen value is of course not yet submitted. I'm looking for some way to get the chosen value available when I click on a download button. Here's my code: <p:selectOneRadio id="sorType" value="#{bean.type}" layout="custom"> <f:selectItem itemLabel="XML" itemValue="XML" /> <f

PrimeFaces and Spring

匆匆过客 提交于 2019-12-25 14:09:09
问题 This is my first experince using Spring on a project, I'm using PrimeFaces and Hibernate, and I need to integrate Spring security as well, the thing is that after doing the pom.xml configuration the project runs but the PrimeFaces "look and feel" disappeared, and I don't know why is happening. here's my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache

PrimeFaces and Spring

妖精的绣舞 提交于 2019-12-25 14:08:47
问题 This is my first experince using Spring on a project, I'm using PrimeFaces and Hibernate, and I need to integrate Spring security as well, the thing is that after doing the pom.xml configuration the project runs but the PrimeFaces "look and feel" disappeared, and I don't know why is happening. here's my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache