primefaces

can currencyconverter ignore the $ sign when not entered

我怕爱的太早我们不能终老 提交于 2020-01-04 04:05:53
问题 In a datatable, I have to validate the input as currency. When I enter the value after deleting the $ sign, the input component throws an error. <p:column> <f:facet name="header"> <p:outputLabel value="REC REVENUE" /> </f:facet> <p:inputText id="RERVN" styleClass="RERVN" value="#{segmentSetup.userSegmentTypesMap['RERVN'].segmentValues[rank].rangeMinValue}" disabled="#{!segmentSetup.userSegmentTypesMap['RERVN'].selected || (rank==fn:length(segmentSetup.ranks)) }" validator="#{segmentSetup

PrimeFaces DataTable selection goes null on dialog.show()

混江龙づ霸主 提交于 2020-01-04 04:02:50
问题 I've got a BIG problem using Datatable and Dialog together. I need to click on a datatable's row and showing a dialog which loads data from datatable's selected item. Selection goes fine, but the selected element is set to null as soon as the dialog is shown :/ Here's some code : <h:form id="form"> <pou:dataTable widgetVar="conv" id="mex" var="conv" value="#{messagesBean.listaConversazioni}" paginator="true" rowKey="#{conv}" paginatorPosition="bottom" selection="#{messagesBean.destinatario}"

PrimeFaces ViewExpiredException after page reload

我的未来我决定 提交于 2020-01-04 03:00:11
问题 I have wrapper PrimeFaces.ajax.AjaxResponse to handle ViewExpiredException (reloading the page): var handleViewExpired = function (viewId) { window.alert('${msg.ajax.viewExpired}'); window.location.reload(); }; However, sometimes I got that error over and over again after trying to click anything invoking AJAX requests on the site: javax.faces.application.ViewExpiredException: /tree.xhtmlNo saved view state could be found for the view identifier: /tree.xhtml at org.apache.myfaces.lifecycle

Listening to onSelect events from Autocomplete (Primefaces) component

[亡魂溺海] 提交于 2020-01-04 01:58:06
问题 I am trying to listen to select event from autocomplete using attribute selectListener . I am passing a remoteCommand as select listener. But the selectListener never calls this remoteCommand method. My code follows: <h:form> <p:autoComplete autocomplete="true" completeMethod="#{search.fetchSuggestions}" value="#{search.selectedSuggestion}" selectListener="moveToSelectedPage()"/> <p:remoteCommand name="moveToSelectedPage" action="firstPage.xhtml?faces-redirect=true" /> </h:form> All I am

primefaces commandbutton actionlistener not called

主宰稳场 提交于 2020-01-03 17:47:37
问题 I am using primefaces 3.0 and jsf 2.0 . I have prepared client master which add client using wizard and at the same time reflected in datatable. Then I have updated edit utility in datatable. Then I have added delete button in datatable and try call delete method of bean. But when I click on delete button wizard validation for adding client is executed. So I have created another file ClientEditdatatable.xhtml and included in clientmaster.xhtml but same result remain. Now I want to add delete

after filtering Empty rows blank rows displayed while paging in the datatable using Primefaces

谁说胖子不能爱 提交于 2020-01-03 17:27:09
问题 I have problem with datatable using Primefaces 2.2.1 and JSF 2.0. I have used filtering and paging in the datatable. When I try to filter the selected data is displayed and when i remove the filter the entire data is displayed. But after this when i try to use paging then suddendly all the rows becomes blank(empty) See screenshot below Any suggestions. Please help. .xhtml file <p:dataTable var="user" value="#{userManagedBean.searchUsersResults}" selection="#{userManagedBean.selectedUser}"

Body attributes (onkeydown, onkeyup…) not rendered after upgrading to Primefaces 5.1, from 4.0

浪子不回头ぞ 提交于 2020-01-03 17:00:53
问题 I have set up a simple maven project with the following dependencies: <dependencies> <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>javax.el-api</artifactId> <version>3.0.1-b04</version> <scope>provided</scope> <

PrimeFaces lazydatamodel load method not called

我的梦境 提交于 2020-01-03 10:19:20
问题 I happen not to understand why my load method is not called in a lazydatamodel of my primefaces table. My xhtml page goes like this <h:form id="myForm"> <p:dataTable value="#{myBean.configDataModel}" id="configTable" var="config" paginator="true" rows="10" selectionMode="single" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="5,10,20"> . . </h:form> My Bean code goes like this and

How to retain/maintain collapse and expand states of <p:panelMenu> even after a page refresh?

↘锁芯ラ 提交于 2020-01-03 06:44:08
问题 Suppose I have the following simple <p:panelMenu> . <p:panelMenu style="width:200px"> <p:submenu label="Contents"> <p:menuitem value="MenuItem1" url="SomeURL" icon="ui-icon-disk" /> <p:menuitem value="MenuItem2" url="SomeURL" icon="ui-icon-disk" /> <p:menuitem value="MenuItem3" url="SomeURL" icon="ui-icon-disk" /> </p:submenu> <p:separator /> <p:submenu label="Users"> <p:menuitem value="MenuItem1" url="SomeURL" icon="ui-icon-disk" /> <p:menuitem value="MenuItem2" url="SomeURL" icon="ui-icon

Use jQuery to generate PrimeFaces button clicked, but the click event get called over and over

China☆狼群 提交于 2020-01-03 04:52:08
问题 Here is what I try to accomplish. I have a hidden form with two JSF inputText and a button. Wherever i click inside a div container, I will try to calculate the x and y coordinate relative to my container. Then use jQuery to set the value of x and y to the value of the two JSF inputText and submit the form. A managed bean behind the JSF page will try to catch the value of x and y submit. Below are my codes. Please let me know what I did wrong, because method createNewInput inside managed bean