primefaces

How to do multiple selection in jsf or primefaces dataTable?

做~自己de王妃 提交于 2020-01-05 11:48:29
问题 I want to try out building a simple grid that has a delete column, consisting of checkboxes, just like the usual one in email. User can then tick the checkboxes, and press delete, and i can get all the checked records, and delete them one by one. Im trying to find a way to achieve this, but so far im still in doubt. These are what i have in mind, each with it's own implementation question, haha : How to get the checked row indexes ? Using actionlistener for each toggle on each checkbox ? (but

How to do multiple selection in jsf or primefaces dataTable?

南楼画角 提交于 2020-01-05 11:43:25
问题 I want to try out building a simple grid that has a delete column, consisting of checkboxes, just like the usual one in email. User can then tick the checkboxes, and press delete, and i can get all the checked records, and delete them one by one. Im trying to find a way to achieve this, but so far im still in doubt. These are what i have in mind, each with it's own implementation question, haha : How to get the checked row indexes ? Using actionlistener for each toggle on each checkbox ? (but

Primefaces CKEditor wrong URL encoding

给你一囗甜甜゛ 提交于 2020-01-05 10:02:34
问题 I tried to start using Primefaces CKEditor in my project. I did all what is described here: https://github.com/primefaces-extensions/primefaces-extensions.github.com/wiki/Getting-Started But unfortunately the script of CKEditor contains wrong generated urls. (there some urls is prefixed by '.2') for example: insted of: javax.faces.resource/ckeditor/skins/moono-lisa/.2editor.css.xhtml?ln=primefaces-extensions&v=6.2.5&v=6.2 should be javax.faces.resource/ckeditor/skins/moono-lisa/editor.css

Set flash parameter AllowScriptAccess to 'sameDomain' instead 'always'

元气小坏坏 提交于 2020-01-05 09:04:28
问题 I am using prime faces jar in my web application. The prime faces jar contain utility.js file. I need to set flash parameter AllowScriptAccess value to 'sameDomain' instead 'always' in utility.js file. I am not interested to edit jar file manually. It is challenging one. Anybody have idea about this let me know pls. 回答1: Try to put a modified copy of that utility.js file in your resources folder an load it using the <f:facet name="last"> , that way your copy of the file should be loaded in

selectItems java.lang.IllegalArgumentException

人走茶凉 提交于 2020-01-05 08:14:14
问题 I really have given this quite some time before posting it, but I just don't seem to narrow down to the source of the trouble. I have this "basically" simple code, let's just say that once I click on a <p:commandButton> , an action is fired that fills an ArrayList which is to be invoked on a <p:dataTable> . My <p:commandButton> is : <p:commandButton value="Afficher" actionListener="#{fieldController.fillListFields()}" ajax="false"/> as for my my <p:dataTable> , it's like this : <p:dataTable

number scale on primefaces charts

让人想犯罪 __ 提交于 2020-01-05 07:22:31
问题 When we create a primefaces chart then it shows number scale in decimal points. I want to show without decimal places like simple munbers.Is there a way? Thanks 回答1: Update: While the workaround posted below still works I found a more proper solution to do this. Number scale can be formatted trough extender function: <p:barChart value="#{testClazz.categoryModel}" legendPosition="ne" widgetVar="barChartObj1" extender="ext1"/> place the following function between the <head></head> tags on your

How to update a LayoutUnit in PrimeFaces to get it rendered?

匆匆过客 提交于 2020-01-05 06:59:08
问题 I have a fullPage layout in my xhtml with a west-positioned layoutUnit for the menu and a center-positioned one for the content. I have implemented several center-positioned layotUnits, and I want to render them according to the menuItem selected. When I run the application, it won't refresh the layoutUnit, until I click refresh in the browser (IE8 - company standard). The xhtml is the following: <h:body> <h:form> <p:layout fullPage="true" id="allLayout"> <p:layoutUnit position="west" header=

How to update a LayoutUnit in PrimeFaces to get it rendered?

て烟熏妆下的殇ゞ 提交于 2020-01-05 06:58:32
问题 I have a fullPage layout in my xhtml with a west-positioned layoutUnit for the menu and a center-positioned one for the content. I have implemented several center-positioned layotUnits, and I want to render them according to the menuItem selected. When I run the application, it won't refresh the layoutUnit, until I click refresh in the browser (IE8 - company standard). The xhtml is the following: <h:body> <h:form> <p:layout fullPage="true" id="allLayout"> <p:layoutUnit position="west" header=

Primefaces Dialog box - show it conditionally. javascript code not working

谁说我不能喝 提交于 2020-01-05 06:55:08
问题 I want to show a dialog box on the click of a primefaces commandbutton. Before the dialog box , I need to check a condtional. I am using Spring web-flow 2.3.0. So I am doing it like this , And the Dialog Box is I am not able to show this dialog box based on this condition. Please help me ,any pointers? SWF 2.3.0 Primefaces 2.2.1 JSF 2 Spring Security 3 Spring 3.1.0M1I EhCache Apache Tomcat 6.0 STS 2.5.1 So I have changed my code as per below <p:commandLink id="addRequest" immediate="true"

PrimeFaces DataTables not working

邮差的信 提交于 2020-01-05 06:50:20
问题 I'm new to PrimeFaces tried out an example in PrimeFaces datatable public class Datatable { private String fname; private String lname; private int age; public Datatable(String fname, String lname, int age) { // TODO Auto-generated constructor stub } public String getFname() { return fname; } public void setFname(String fname) { this.fname = fname; } public String getLname() { return lname; } public void setLname(String lname) { this.lname = lname; } public int getAge() { return age; } public