primefaces

Tomcat: trace all (even catched) exceptions

China☆狼群 提交于 2020-01-16 18:14:47
问题 is it possible to trace all exceptions in Tomcat server (or, in general, JVM)? Thanks for all! P.S. I need it because exception occurs in org.primefaces.application.PrimeResourceHandler.handleResourceRequest() and a trivial message is printed (line 79) 回答1: Sure. Start tomcat using that: ./catalina jpda start And then connect using the eclipse debugger, as described here: http://wiki.apache.org/tomcat/FAQ/Developing#Q1 When for example Eclipse is connected, go to the Breakpoints panel, there

Tomcat: trace all (even catched) exceptions

不羁岁月 提交于 2020-01-16 18:14:08
问题 is it possible to trace all exceptions in Tomcat server (or, in general, JVM)? Thanks for all! P.S. I need it because exception occurs in org.primefaces.application.PrimeResourceHandler.handleResourceRequest() and a trivial message is printed (line 79) 回答1: Sure. Start tomcat using that: ./catalina jpda start And then connect using the eclipse debugger, as described here: http://wiki.apache.org/tomcat/FAQ/Developing#Q1 When for example Eclipse is connected, go to the Breakpoints panel, there

How to disable ctrl+v (paste) function in a JSF page ?. I am using primefaces component.

一曲冷凌霜 提交于 2020-01-16 14:02:12
问题 I have an inputText component where i am accepting only integer values by validating through keyup event. but i am not able to disable ctrl+v option so the user is able to paste string value into the input text box. html has onpaste option but JSF does not! Thanks in advance. 回答1: With JSF 2.2 you can "pass through" attributes to be rendered via <f:passThroughAttribute /> and you would be able to add something like onpaste="return false;" , but I assume you do not use JSF 2.2 yet. You can

How to disable ctrl+v (paste) function in a JSF page ?. I am using primefaces component.

三世轮回 提交于 2020-01-16 14:01:32
问题 I have an inputText component where i am accepting only integer values by validating through keyup event. but i am not able to disable ctrl+v option so the user is able to paste string value into the input text box. html has onpaste option but JSF does not! Thanks in advance. 回答1: With JSF 2.2 you can "pass through" attributes to be rendered via <f:passThroughAttribute /> and you would be able to add something like onpaste="return false;" , but I assume you do not use JSF 2.2 yet. You can

how to have more than one column of checkboxes in primefaces

寵の児 提交于 2020-01-16 10:34:25
问题 I need to do a user permissions grid hopefully using a primefaces datatable. For each row: Column one is a class name, Column two is a checkbox for permission for one of two subclasses. Column three is a checkbox for permission for the other subclass. The headers of columns two and three must have the subclass title plus a checkbox, the toggles all the other checkboxes in that subclass. I think I can use two or three datatables side by side inside a scrollpanel but I'm having issues lining up

how to have more than one column of checkboxes in primefaces

左心房为你撑大大i 提交于 2020-01-16 10:31:51
问题 I need to do a user permissions grid hopefully using a primefaces datatable. For each row: Column one is a class name, Column two is a checkbox for permission for one of two subclasses. Column three is a checkbox for permission for the other subclass. The headers of columns two and three must have the subclass title plus a checkbox, the toggles all the other checkboxes in that subclass. I think I can use two or three datatables side by side inside a scrollpanel but I'm having issues lining up

binding on p:dataTable which is included multiple times causes ID unqiueness exceptions

。_饼干妹妹 提交于 2020-01-16 01:55:48
问题 I'm attempting to use a special PrimeFaces data exporter implementation as being used in this answer: https://stackoverflow.com/a/14413932/396732 Our use case however is a little more complex, e.g. using Facelets to show the respective datatable for export, which has row expansions with sub tables in them. insiderListManagerDialogs.xhtml: <ui:include src="insiderListManagerListDialog.xhtml"> <ui:param name="idPrefix" value="il-emp" /> <ui:param name="widgetVarPrefix" value="ilEmp" /> <ui

Primefaces treetable different background colors for rows of different hierarchy

柔情痞子 提交于 2020-01-16 01:05:28
问题 Is there any chance that the background colors can be different on different hierarchies? For example, in the above picture, make the rows of Documents, Pictures, Movies green and their children yellow. Thank you! 回答1: You can specify on a given UITreeNode (that's used to represent a node within a Tree) the style by using the the setStyleClass method. 回答2: Yes, you can add conditions based on #{document.type} inside styleClass (or style ) attributes of p:column tags. A quick example could be

FullAjaxExceptionHandler does not redirect to error page for Ajax request

无人久伴 提交于 2020-01-16 01:01:34
问题 I know there has been numerous questions here on this question, but almost all of them suggest adding the following code because there is another layer "above" the FullAjaxExceptionHandler that is sending a plain redirect instead of doing an Ajax redirect (see this similar question): if ("partial/ajax".equals(request.getHeader("Faces-Request"))) { // JSF ajax request. Return special XML response which instructs JavaScript that it should in turn perform a redirect. response.setContentType(

FullAjaxExceptionHandler does not redirect to error page for Ajax request

夙愿已清 提交于 2020-01-16 01:01:32
问题 I know there has been numerous questions here on this question, but almost all of them suggest adding the following code because there is another layer "above" the FullAjaxExceptionHandler that is sending a plain redirect instead of doing an Ajax redirect (see this similar question): if ("partial/ajax".equals(request.getHeader("Faces-Request"))) { // JSF ajax request. Return special XML response which instructs JavaScript that it should in turn perform a redirect. response.setContentType(