primefaces

Do not unselect rows when clicking on another rows in Primefaces datatable

 ̄綄美尐妖づ 提交于 2019-12-24 16:17:42
问题 I'm working with Primefaces 3.5 Data Table. The table is with multiselection mode enabled. Basically, the table is the same as the last one from [this showcase][1]. So the table is defined like this <p:dataTable id="myTable" var="item" value="#{myController.items}" selection="#{myController.selectedItems}" rowKey="#{item.id}"> <p:column selectionMode="multiple"/> <p:column headerText="Id"> ... So when the user selects some rows by clicking on checkboxes and then accidentally clicks on one row

No ViewState is sent

佐手、 提交于 2019-12-24 16:14:55
问题 I have a JSF 2.2.0-m12 application with primefaces 3.5. Since I ported the application from JBoss 7.1.1 to Tomcat 7.0.39, the first change of an inputfield (inputtext, slider, button,...) after reloading a page works fine, but the second change does nothing. I searched for the differences between the first and the second request: 1st request: JSF phases: Phases from 1 till 6 are executed In Firebug 'network -> all -> POST zinsrechner.xhtml -> post' is a viewstate: contentForm contentForm

primefaces codeMirror doesn't load his own css and js

前提是你 提交于 2019-12-24 16:13:55
问题 I want to use codeMirror from primeface-extension with an sql syntax. I've got a 404 error when the page who contains this component load. The Css and javascript component not found. My code is the same as the example from showcase-ext codeMirror. Using primefaces 5.1 and primefaces-ext 2.1.0. Does anyone have this problem? Thank you in advance. edit: my jsf: <pe:codeMirror id="codeMirror" value="#{sandboxBean.content}" lineNumbers="true"/> <p:commandButton actionListener="#{sandboxBean

How to make characters non editable in primefaces inputmask

徘徊边缘 提交于 2019-12-24 16:10:03
问题 First two characters should be non editable. Example: input string length has to be 4: text box "TEXT" User can change only "XT" not "TE"; Edited: TEXT can AAAA, aaaa, aa90, 9a09, String can be anything. User can change only last two character and first two character could be anything. We can use p:inputtext or p:inputmask Thanks 回答1: If your text can be anything and the first 2 characters need to be fixed, you don't have any other option then to make your mask dynamic and base it on the

Primefaces dataTable inside tabView the row selection not working correctly

元气小坏坏 提交于 2019-12-24 16:09:26
问题 I have a tabView with a dynamic number of tabs which displays search results (in a class SearchInstance). Inside a tab there is also a tabView which displays a search result in different ways. One tab of this inner tabView shows the search results in a dataTable (as List). The rows are selectable. I propagate the selected search results in the table to the current SearchInstance object. Unfortunately the selected search results are only set correctly on the last tab. If I select a search

How to use primefaces 3.5 blockUI block all page (p:layout) when click p:menu in p:layoutUnit (west)

这一生的挚爱 提交于 2019-12-24 16:05:26
问题 How to use primefaces 3.5 blockUI block all page (p:layout) when click p:menu in p:layoutUnit (west) main.xhtml <h:body> <p:layout fullPage="true"> <p:layoutUnit gutter="0" collapseSize="0" id="topLayout" position="north" size="88"> <h:form id="topForm"> <ui:include src="main_top.xhtml" /> </h:form> </p:layoutUnit> <p:layoutUnit gutter="0" collapseSize="0" id="leftLayout" position="west" size="155" header="Main Menu"> <h:form id="leftForm"> <ui:include src="main_left.xhtml" /> </h:form> </p

JSF: Respecting a component binding method after UI-driven events are processed in backing beans?

左心房为你撑大大i 提交于 2019-12-24 15:49:27
问题 Finally I've managed how to build a true dynamic table with the DOM -like approach in JSF when the data table structure is defined according to an external source. ( DataTable with dynamic columns exactly what I need) Basically, the following code is quite enough for me: <p:layoutUnit position="west"> <!-- 2 --> <p:tree value="#{tableViewsPageBean.root}" var="node" dynamic="true" cache="false" selectionMode="single" selection="#{tableViewsPageBean.selectedNode}"> <!-- 3 --> <p:ajax event=

Too much data in p:dataTable results in broken row/cell edit submits

给你一囗甜甜゛ 提交于 2019-12-24 15:28:55
问题 I've been using datatables to allow users to enter and edit large amounts of data, but have found that once a large (but uncertain) amount of columns and rows are reached, the form becomes unable to be submitted, and all forms of communication with the server are cut off (unrelated buttons, ajax, etc) until a page refresh is performed. Is this a limitation of my computer/browser, or is there a hard-coded limit on the maximum quantity of editable data able to be displayed in a datatable? Could

Open primefaces tagcloud links in a new window

我的未来我决定 提交于 2019-12-24 15:25:25
问题 I'm using primefaces tagcloud. But when i clicked on the links given on the tagcloud, it opened in that same window.But on clicking the tagcloud links it should open in a new window not on the same window. I want a new window will open when i click on the tagcloud links. Can anyone please help me about this topics ??? 回答1: JavaScript solution: One possible approach could be JavaScript: <p:tagCloud model="#{tagCloudBean.model}" onclick="preventDefault(event)"> <p:ajax event="select" update=

OmniFaces highlight does not set focus with <p:ajax>

断了今生、忘了曾经 提交于 2019-12-24 15:19:54
问题 I got a simple login form. I am using <p:ajax> to invoke a <p:blockUI> (see this question). <h:commandButton id="anmeldung_button" action="#{benutzerAnmeldung.anmelden}" value="Anmelden" styleClass="btn btn-info btn-sm"> <p:ajax process="@form" update="@form"/> </h:commandButton> <p:blockUI id="block" block=":anmeldung" trigger="anmeldung_button" /> I am using <o:highlight /> to highlight invalid inputs. This works fine. It is working with a <f:ajax> perfectly, too. Apperently, it is not