primefaces

How to edit data in cell of datatable primefaces 3.4.2

£可爱£侵袭症+ 提交于 2020-01-07 04:37:07
问题 My project use primefaces ver 3.4.2. I don't see that version supporting cell editing in datatable as showcased here. 3.4.2 has row editing that has many action to edit data in datatable. I cannot upgrade the primefaces library version. How can I achieve cell editing in 3.4.2? 回答1: try this : editable="true" and editMode="cell" which will allow us to edit cell.. (this is supported in 3.4.2) and columns must be written as below .. <p:dataTable id="cars" var="car" value="#{tableBean.carsSmall}"

p:datatable displayed wrongly after ajax update

Deadly 提交于 2020-01-07 04:19:07
问题 I have problem with a primefaces datable, I have a filter on a column and before to filter the result my datatable is displayed properly like this: When I choose a filter, the combobox of the filter is properly poulated: A soon I choose the item for the filter, the results are properly filtered but I have a display of the datatable like this: I just see the results who should be display in a datatable but the table is gone. The code seems good and I don't see where is the problem: <p

p:datatable displayed wrongly after ajax update

霸气de小男生 提交于 2020-01-07 04:19:06
问题 I have problem with a primefaces datable, I have a filter on a column and before to filter the result my datatable is displayed properly like this: When I choose a filter, the combobox of the filter is properly poulated: A soon I choose the item for the filter, the results are properly filtered but I have a display of the datatable like this: I just see the results who should be display in a datatable but the table is gone. The code seems good and I don't see where is the problem: <p

Using <h:selectBooleanCheckbox> with Map in a paginated <p:dataTable> throws NullPointerException

给你一囗甜甜゛ 提交于 2020-01-07 04:05:28
问题 I am using PrimeFaces <p:dataTable> with pagination. I use <h:selectBooleancheckbox> with a Map property for corresponding row selection. The problem which I am facing is when I select and submit the values, there is a NullPointerException . The values are checked for particular rows only. I am using JSF 2.0 and PrimeFaces 3.0. My page is: <p:dataTable id="ngoPhotoTab" paginator="true" rows="10" value="# {photoApprovelBean.lstNgoPhotos}" var="ngoPhoto"> <p:column headerText="NgoName"> #

Using <h:selectBooleanCheckbox> with Map in a paginated <p:dataTable> throws NullPointerException

笑着哭i 提交于 2020-01-07 04:05:25
问题 I am using PrimeFaces <p:dataTable> with pagination. I use <h:selectBooleancheckbox> with a Map property for corresponding row selection. The problem which I am facing is when I select and submit the values, there is a NullPointerException . The values are checked for particular rows only. I am using JSF 2.0 and PrimeFaces 3.0. My page is: <p:dataTable id="ngoPhotoTab" paginator="true" rows="10" value="# {photoApprovelBean.lstNgoPhotos}" var="ngoPhoto"> <p:column headerText="NgoName"> #

JSF2 download file returns xhtml page source

佐手、 提交于 2020-01-07 03:56:46
问题 I've been working on this for hours : When a button is pressed I need to generate XML and download it to the user. I've tried using primefaces StreamedContent with p:fileDownload - but the only output I ever get is the .xhtml source of the actual page. I can use log statements to display the contents of the the StreamedContent before returning it and I can see my XML code correctly there, but the downloaded file always has the page source instead. (I've tried lots of other ways as well, tied

Why can't I get ViewScope to work? Throws errors every time

天涯浪子 提交于 2020-01-07 03:12:15
问题 Ok I'm trying to do something real simple. Just to note this works fine with SessionScope. I have a datatable and when I select a row it needs to update a form that a user could edit. Every time I try and fire the row selector it comes back with this. SEVERE: Error Rendering View[/index.xhtml] java.lang.IllegalStateException: PWC3999: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2867) at org.apache.catalina

<p:commandButton> won't submit form on first click if <p:inputText> field uses <p:ajax>

北城余情 提交于 2020-01-06 21:26:22
问题 I'm having an issue with the following form: <h:form> <p:outputPanel autoUpdate="true"> <p:panelGrid columns="2"> <f:facet name="header"> <h:outputText value="Edit a Recycler"/> </f:facet> <p:outputLabel value="Recycler Name" for="recyclerName"/> <p:inputText id="recyclerName" value="#{RecyclerAdmin.editItem.company.companyName}" required="true" requiredMessage="You must name the recycler."> <p:ajax async="true" /> </p:inputText> <p:outputLabel value="Zip Code" for="zipCode"/> <p:inputText id

Primefaces Data Table Style Issue

醉酒当歌 提交于 2020-01-06 21:07:25
问题 I have a primefaces table with multiple checkboxes and i used p:ajax for pagination.I placed datatable inside a p:outputPanel and whenever i select second page in data scroller i will update to main panel bcoz i want show selected row data into separate datatable, but at that time my datatable style completely collapsed. I am using primefaces 5.1 version.help me to fix this issue Thanks in advance! This is the sample code of datatable, <p:outputPanel id="mainPanelId"> <p:dataTable id=

Disable days in the other calendar when a month or a year is changed

可紊 提交于 2020-01-06 20:37:55
问题 I have two calendars (startDate and endDate) I have a function to disable all days excepts mondays or enable the next working day to the holiday monday in the startDate calendar. And I have a function to disable all days excepts fridays or enable the previous working day to the holiday friday in the endDate calendar. When I select a date in the startDate calendar it selects automatically some enabled date in the endDate calendar and vice versa. When the user changes the month or the year in