primefaces-extensions

Identify when the selected row in the table is already selected

旧时模样 提交于 2019-12-10 17:55:11
问题 I have a p:datatable in primefaces and i have different listeners for differents ways to select row event in datatable. I need identify when the selected row in the table is already selected, how can i do that? I need this because i dont wonna that p:blockUI runs when i select row in the table that is already selected. There is my page code: ... <pe:blockUI autoShow="true" source="itemsDT" event="rowSelect" target=":processTab"> <au:loading /> </pe:blockUI> <p:dataTable widgetVar=

PrimeFaces extensions - empty value attribute

久未见 提交于 2019-12-10 17:21:05
问题 On my page, I have <pe:inputNumber> which refers to a not mandatory field. If I leave it empty, it sets the value to 0 even if I set emptyValue = "" . What should I do or what should I use, if this component cannot offer me that functionality? 回答1: You might need to specifically instruct JSF to interpret empty input fields as null as against coercing it to "0" with the context-param <context-param> <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> <param

How to access widgets from ManagedBean

一笑奈何 提交于 2019-12-08 12:03:39
问题 Using Primefaces 3.1.1. I would like to add two date values and subtract two date values. <p:calendar widgetVar="Var1" id="ID1" value="#{Bean.Till}" pattern="HH:mm" timeOnly="true" mode="popup" showOn="button"> <p:calendar widgetVar="Var2" id="ID2" value="#{Bean.Late}" pattern="HH:mm" timeOnly="true" mode="popup" showOn="button"> A managed bean is called on the click of a submit button. <h:commandButton value="Save" action=" #{timePickingBean.submitMethod}" > <f:ajax execute="@form" render=

How to display Parent and Child ( two different objects ) in treetable primefaces?

不问归期 提交于 2019-12-06 06:09:33
I am using Treetable component to display parent and child objects. I can able to display the parent content by using this tutorial. In my case, I am using two different objects to display the contents in the TreeTable component. Those objects are following. University Detail - It is my parent Object. It contains (Id and Name of each university) as well as child colleges. College Detail - It is my child Object. It contains (Id and Name) of each college. UniversityDetail Class public class UniversityDetail implements Serializable { /** * serialVersionUID - */ private static final long

Tooltip for each row in data table

你说的曾经没有我的故事 提交于 2019-12-05 21:39:50
问题 This questions screams to be a duplicate of JSF 2.0 + Primefaces 2.x: Tooltip for datatable row but since this old question has NO working/satisfying solution for me and there's no way (?) to get attention back to it I opened this new one. It's very simple: I have a dataTable (with JSF-standard or with primefaces) and I'd like to add a different tooltip for EACH row (not just for one field in it!). What I tried so far: <pe:tooltip value="This is row number #{rowIndex}" for="@(#table1 tr[role

Adding custom cell renderers in pe:sheet

时间秒杀一切 提交于 2019-12-02 14:08:37
问题 I am trying to implement a custom cell renderer to the pe:sheet component. As this component is based on Handsontable, I tried the approach as described here: https://handsontable.com/docs/6.2.2/demo-custom-renderers.html I also changed the code for registering from Handsontable.renderers.registerRenderer('myRenderer', myCustomRenderer); to this.cfg.renderers.registerRenderer('myRenderer', myCustomRenderer); in an attempt to access the instance of handsontable inside pe:sheet. I am calling my

How to hide “ln” and “v” implementation/version related parameters for PrimeFaces resources

五迷三道 提交于 2019-12-02 09:19:40
问题 I'm using primefaces and primefaces-extensions in my application. For each and every resources like .css and .js files there's also an "ln" and "v" query parameters in the GET request for that resource, like below: primefaces-extensions.js?ln=primefaces-extension&v=6.1 validation.js?ln=primefaces&v=6.1 As a security concern, since these parameters shows the exact version of the framework I'm using, how can I hide them? 回答1: Hiding the 'ln' is kind of useless since with a very small amount of

Message: Missing PDF in PrimeFaces Extensions DocumentViewer

自古美人都是妖i 提交于 2019-12-02 07:09:17
问题 This is my code JAVA:--- public StreamedContent getTempPdfFile() throws IOException { File testPdfFile = Paths.get("D:\\AFC150_20180819_0103.pdf").toFile(); return new DefaultStreamedContent(new FileInputStream(testPdfFile), "application/pdf", "AFC150_20180819_0103"); } JSF:--- <pe:documentViewer height="500" width = "1000" url="#{realReport.tempPdfFile}"/> error:--PDF.js v1.0.21 (build: f954cde) Message: Missing PDF "http://localhost:8080/BACKEND_SAWS_WEB/javax.faces.resource/documentviewer

Adding custom cell renderers in pe:sheet

蹲街弑〆低调 提交于 2019-12-02 06:39:46
I am trying to implement a custom cell renderer to the pe:sheet component. As this component is based on Handsontable, I tried the approach as described here: https://handsontable.com/docs/6.2.2/demo-custom-renderers.html I also changed the code for registering from Handsontable.renderers.registerRenderer('myRenderer', myCustomRenderer); to this.cfg.renderers.registerRenderer('myRenderer', myCustomRenderer); in an attempt to access the instance of handsontable inside pe:sheet. I am calling my sheetExtender via the extender attribute of pe:sheet. function sheetExtender() { // this.cfg.renderers

Using ckeditor in jsf page

北战南征 提交于 2019-12-02 05:58:59
问题 How do I use a custom CKEditor in a jsf page ? I'm having lots of trouble trying to implement it. What I did: I made a custom CKEditor with the ckEditor builder Downloaded and placed it in my webcontent folder. test.xhtml page: <script src="/ckeditor/ckeditor.js"></script> <form> <textarea name="editor1" id="editor1" rows="10" cols="80"/> <script> CKEDITOR.replace( 'editor1'); </script> </form> Not working, just had a standard textarea. So I changed the src to: <script src="ckeditor/ckeditor