primefaces

Jsf pages shows blank when deployed on Tomcat 7

邮差的信 提交于 2020-01-06 08:47:13
问题 Application builds fine and deploys, the index.html pages shows up before redirecting to the login.xhtml page and there the problem begins, the login.xhtml page displays blank and the view source does same thing. Any help will be appreciated. Below is my web.xml file <?xml version="1.0" encoding="UTF-8" ?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

PrimeFaces 3.0.M3

不打扰是莪最后的温柔 提交于 2020-01-06 08:47:07
问题 I have been using PrimeFaces-2.0 with Tomcat 6.0 and now, I want to migrate to PrimeFaces 3.0 M3. I've added the jar into the classpath and into the /WEB-INF/lib but when I launch the application I have this error message ' java.lang.ClassNotFoundException: org.primefaces.resource.ResourceServlet ' first and when I am in jsf file I can't see any component when I type 'p:(ctrl+space)'. I am using this namespace url 'xmlns:p="http://primefaces.prime.com.tr/ui"'. I don't know where the problem

How to send JSON using JSF2 Primefaces Request Context to Highchart?

做~自己de王妃 提交于 2020-01-06 08:44:18
问题 Hi I've been strugling with this for hours, I want to send my POJO in JSON format using Primefaces Request Context to a Highchart inside my JSF to update its value. Basically I am following this solution of @Bhesh Gurung from his own stackoverflow question but I cant seem to make it work. Right now it is throwing a: Cannot find component with identifier "pieData" referenced from "j_idt31". I want to sucessfully create a highchart using the JSON data through the Primefaces Request Context.

How I can change the value of “selectOneMenu” without restart the “inputText”?

≡放荡痞女 提交于 2020-01-06 08:30:51
问题 I have the next code: <h:form id="form" > <h:panelGrid > <p:inputText placeholder="Name" value="#{controladorGestionGrados.otherValue}" /> <p:selectOneMenu value="#{controladorGestionGrados.value}" > <f:selectItem itemValue="A" itemLabel="A" /> <f:selectItem itemValue="B" itemLabel="B" /> <f:selectItem itemValue="C" itemLabel="C" /> <p:ajax update=":form" /> </p:selectOneMenu> <p:outputLabel id="someText" value="Some text" rendered="#{controladorGestionGrados.value eq 'C'}" /> </h:panelGrid>

PrimeFaces p:calendar with readonlyInput=“true” reset button causing no AJAX request

蹲街弑〆低调 提交于 2020-01-06 08:16:34
问题 Since there's no attribute/option for <p:calendar> (readonlyInput="true") to reset the value to null, the best available solution currently is to use some client JS to reset the value like here: https://stackoverflow.com/a/12325640/396732 However, as soon as the clear button controls an AJAX button , the new calendar value isn't submitted. I tried to process the end-date button, like: <p:calendar id="end-date" widgetVar="myEntityEndDate" value="#{myEntityManager.selectedEndDate}"

Page On load event in JSF

ⅰ亾dé卋堺 提交于 2020-01-06 08:13:47
问题 I am trying to assign values to my dropdown during page load. I followed the way which is given in this link. Invoke JSF managed bean action on page load As per the link, i have tried using both the annotation and constructor type. but its an exception for me, SEVERE: An exception occurred javax.faces.FacesException: java.lang.reflect.InvocationTargetException Caused by: java.lang.reflect.InvocationTargetException Caused by: javax.el.ELException: Detected cyclic reference to managedBean

Page On load event in JSF

∥☆過路亽.° 提交于 2020-01-06 08:12:13
问题 I am trying to assign values to my dropdown during page load. I followed the way which is given in this link. Invoke JSF managed bean action on page load As per the link, i have tried using both the annotation and constructor type. but its an exception for me, SEVERE: An exception occurred javax.faces.FacesException: java.lang.reflect.InvocationTargetException Caused by: java.lang.reflect.InvocationTargetException Caused by: javax.el.ELException: Detected cyclic reference to managedBean

How to change Primefaces fileupload cancel button icon

为君一笑 提交于 2020-01-06 07:59:28
问题 I want to use jQuery ui-icon-close instead of ui-icon-cancel . So I go to the fileupload.js file in the primefaces jar (3.3.1), change the reference to ui-icon-cancel to ui-icon-close (line#2082, upload template). But it doesn't work. Any idea? Thanks. 回答1: I found an easier way to solve this problem: I added an id to my fileupload control: <p:fileUpload id="related_file" ..../> Then in my css, I add the following lines: div[id*=related_file] .ui-icon-cancel{ background-position: -96px -128px

How to update Primefaces datatable every time when page is downloaded?

£可爱£侵袭症+ 提交于 2020-01-06 07:56:16
问题 I just have <p:dataTable/> . When I add a new row to that table in another page, the table is not refreshed. RmaBean is managedBean scoped session. Any ideas? <h:form id="mainMenuForm"> <p:dataTable id="dataTable" var="case" value="#{RmaBean.rmaModel}" widgetVar="rmaTable" editable="true" rows="10" paginator="TRUE" emptyMessage="No items found with given criteria."> ... <p:column></p:column> <p:column></p:column> <p:column><p:commandButton action="#{MainController.talletaUusiRma}" value="#

Can't export data table to excel from jsf page

你离开我真会死。 提交于 2020-01-06 07:05:40
问题 I'm using jsf pages with prime faces 3.5 , my data table works fine on html page and all data showing in correct rows and coulmns but my problem when hit excel icon to export all the data i get it as in the link : http://content.screencast.com/users/tl4s.com.sa/folders/Default/media/40664996-d060-41f8-8a8c-428c114d57c1/excel.jpg sample from my html code : <h:form id="hesham1"> <p:scrollPanel style="width:100%;height:100%"> <p:dataTable var="car" value="#{tableBean.carsSmall}" id="hesham"