primefaces

Passing parameter from one page to another - The scope of the object referenced by expression is shorter than the referring managed beans error

混江龙づ霸主 提交于 2019-12-25 01:52:59
问题 I am trying to pass a parameter from one page to another, but when i press the button "Details" it gives me this error: "Unable to create managed bean agencyDetailBean. The following problems were found: - The scope of the object referenced by expression #{agency}, request, is shorter than the referring managed beans (agencyDetailBean) scope of session" This is part from my .xhtml page: <p:dataGrid var="agency" value="#{agencyBean.agencyList}" columns="1" rows="5" paginator="true"

<p:tabview> is not keeping track of data when page is reloaded in PrimeFaces 4.0

无人久伴 提交于 2019-12-25 01:50:17
问题 Hi I have some validation on my form (Java web application), and when the validation is displayed, it should reload the page. When it does this, I lose all the data input in the dropdown list in first tab.(Data in text boxes are retained) Below is how I define my tabview : <p:tabView id="tabView" dynamic="true"> Anyone can help on this? Thanks in Advance I am using PrimeFaces 4.0, spring, hibernate. <h:form prependId="false"> <p:panel> <h:panelGrid id="detail" columns="2" styleClass="grid

primefaces treeTable resizableColumns

℡╲_俬逩灬. 提交于 2019-12-25 01:33:53
问题 I am using primefaces 5.2 . when I chnage TreeTable style to RTL dir (with css code) : .ui-treetable .ui-treetable-toggler { background-image: url("/WebInputQuery/javax.faces.resource/images/ui-icons_616161_256x240.png.faces?ln=primefaces-aristo"); background-position-y:-192px; background-position-x:-16px; // + icon } .ui-treetable .ui-icon-triangle-1-e { background-image: url("/WebInputQuery/javax.faces.resource/images/ui-icons_616161_256x240.png.faces?ln=primefaces-aristo"); background

primefaces schedule time not showing on week

谁说我不能喝 提交于 2019-12-25 00:15:35
问题 this is my problem. it is not showing time when i am clicking on week. 回答1: :) Look at the Calendar again... Your month view of April shows the beginning of May as well.. So its a 1/5 and 4/5 events are actually belongs to May While the week display shows you the first week of April.... you should advance the week view further to the beginning of May... there you should see the events of 1/5 and 4/5 来源: https://stackoverflow.com/questions/10022515/primefaces-schedule-time-not-showing-on-week

PrimeFaces datatable scrollbar position

江枫思渺然 提交于 2019-12-25 00:14:58
问题 How to set a scrollbar position of primefaces datatable from last to first? Actually, I want see the information from bottom to top. Below is my code: <p:dataTable var="c" value="#{MessagingUserBean.inboxDetails1}" scrollable="true" scrollHeight="517" liveScroll="true" emptyMessage="No Message Found" scrollRows="8" scrollWidth="815" > 回答1: Well you can try to not use a liveScroll because you then don't know the end of dataList. Try this and maybe this suit your needs. This will scrolldown to

Retrieve uploaded relativePath file on server side

眉间皱痕 提交于 2019-12-25 00:12:38
问题 I'm using fileUpload from Primefaces (JSF framework) based on jQuery-File-Upload. I'm trying to make this component supporting drag&drop folder thanks to new File API of Firefox or Chrome. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory#Example So far, I've been able to make it happen thanks to passthrough attribute. One of the interesting feature is "webkitRelativePath" allowing to know the relative path of an uploaded file. I'm wondering how I could

Primefaces orderlist custom converter submitting wrong string representation on ajax post back

此生再无相见时 提交于 2019-12-24 23:26:33
问题 I need to reshuffle the order of some data models in a list, so I use Primefaces orderlist. The facelet is: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:form id="main-form"> <p:panelGrid id="grid" columns="3"> <p:outputLabel value="Name" for="label"/> <p:inputText id="label" value="#{sampleBean.obj.name}" /> <p:message for=

Update a field when another field changes

妖精的绣舞 提交于 2019-12-24 21:23:00
问题 I'm sure there's more than one way to do this, but what's a good way of updating one JSF/PrimeFaces component when another one changes? I've got a slider, that correctly updates an input field with it's value (including the value in the backing bean). But that value is a number, and I want to display it as a text value e.g. if it's 1, I want to display "Easy" and if it's 4, display "Difficult". I've got it partly working by hiding the input field that stores the numeric value. And then I've

Primefaces PickList update target list on transfer

我怕爱的太早我们不能终老 提交于 2019-12-24 20:39:49
问题 I want to update the lists in the bean when the user transfers an item from one list to another. Is there a way to do that? Thx. 回答1: In the xhtml: <p:pickList value="#{myBean.myDepartment}" onTransfer="handleTransfer(e)"....> In the bean: List<Department> selectedDepartments = new ArrayList<Department>(); List<Department> availableDepartments = getAvailableDepartments(); private DualListModel<Department> myDepartment; myDepartment = new DualListModel<Department>(availableDepartments,

Primefaces Fileupload Patch

 ̄綄美尐妖づ 提交于 2019-12-24 19:08:50
问题 I have the same problem as the guy in this post. Can you help me apply the patch from here I have no idea if that solves it, but I will try if you can tell me how to apply a patch :-) 回答1: PrimeFaces uses Apache Subversion (SVN) as code repository. It's available here. If you configure your development tool to connect to this code repository (e.g. Eclipse has a Subclipse plugin for this), then you can hook on it, download the entire project, apply the patch yourself and then rebuild the