mojarra

Primefaces excel export is not working - no open/save dialog is shown

◇◆丶佛笑我妖孽 提交于 2019-12-23 17:51:26
问题 I am trying to export collection of dtos to excel with primefaces like this (the same as primefaces showcase demo, which is working). <p:commandButton value="Export"> <p:dataExporter type="xls" target="results" fileName="game_statistics" /> </p:commandButton> I observed with firebug and it makes request, also the response looks like file content, but no file save/open dialog is popping. I am using mojarra 2.1.1 and tomcat 6 for app server. 回答1: The <p:commandButton> sends by default an ajax

h:outputScript with target=“head” not working with Primefaces 3.5

只谈情不闲聊 提交于 2019-12-22 14:15:32
问题 I have a JSF application with some scripts inserted using target="head" attribute, but after including Primefaces 3.5 to the classpath, these scripts stop rendering. Here is the page code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <h:head> </h:head>

Primefaces <p:ajax update=“@all” /> doesn't work

流过昼夜 提交于 2019-12-22 01:32:03
问题 I've got a problem with using p:ajax update atribute element. When I use in my code <p:ajax update="@all" /> then I am getting javax.el.PropertyNotFoundException . When I use <f:ajax render="@all" /> I don't get any. I though that thouse tags are nearly same. Can anyone explain whats happening? I am using mojjara implementation, primefaces 3.5 and Liferay jsf portlet bridge. Example of stacktrace: Caused by: javax.el.PropertyNotFoundException: /pages/views/personForm.xhtml @95,99 value="#

JSF1064 “Unable to find or serve resource” warning on jsf 2.0

我怕爱的太早我们不能终老 提交于 2019-12-20 23:31:14
问题 I'm working on an Enterprise project with Java EE 5 and JSF 2.0 (Mojarra 2.0.3) on Weblogic 10.3.3 I don't have an error, but a very annoying warning in my console when going through my application. Whenever I perform a redirect in JSF, I get a warning in my console of the following form: Nov 7, 2011 5:36:46 PM com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource WARNING: JSF1064: Unable to find or serve resource, images/jquery-theme/ui-icons_cc0000_256x240.png. Nov 7,

gzip compression for jsf stuff

跟風遠走 提交于 2019-12-18 16:51:24
问题 I have an jsf application (mojarra 2.1.8, primefaces 3.3) running on tomcat 6. While analyzing the page in firebug with google page-speed, I realized I could optimize some stuff by gzip-compression. Compressing the following resources with gzip could reduce their transfer size by 371,1KiB (74% reduction). Compressing http://localhost:8080/someApp/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces could save 72,5KiB (74% reduction). Compressing http://localhost:8080/someApp/javax.faces

Custom FaceletFactory in JSF 2.2 / Alternatives for virtual host facelets

。_饼干妹妹 提交于 2019-12-18 08:56:22
问题 Since Mojarra/JSF 2.2. it is not possible anymore to provide a custom FaceletFactory using a web.xml context parameter: <context-param> <param-name>com.sun.faces.faceletFactory</param-name> <param-value>my.faces.overrides.MyFaceletFactory</param-value> </context-param> My application provides some CMS features, including virtual host support to serve different pages (facelets) based on the currently requested domain. So http://www.domain1.com/index.xhtml returns different content than http:/

JSF/Mojarra “flash scope” problems

扶醉桌前 提交于 2019-12-18 08:55:28
问题 I've got an app running on Mojarra 2.1.1 / Glassfish 3.1 which has now grown to 150,000+ lines of code. The app uses ajax extensively with ViewScoped managed beans and the page-redirect-get pattern (i.e. faces-redirect=true). One thing that is continually annoying me is the apparent lack of ease of passing parameters from page to page, and bean to bean (every page has it's own backing bean). I've not been able to get the flash working. I typically need to access the data I've written to the

JSF how upgrade to Mojarra 2.1.21 in Netbeans7.1 (just sub jsf-api.jar and jsf-impl.jar fails)

﹥>﹥吖頭↗ 提交于 2019-12-18 05:22:39
问题 I want to upgrade from JSF implementation Mojarra 2.1.3 in Netbeans7.1 (Glassfish 3.1.1). You might ask first why I don't just upgrade to Netbeans7.3, and the reasons include that it it runs Glassfish 3.1.2.2 and that I have some other 3rd party software in my web application that is not yet compatible with Glassfish higher than 3.1.1, and besides it only has Mojarra 2.1.6 anyway. I used to be able to upgrade Mojarra by simply replacing jsf-api.jar and jsf-impl.jar under /glassfish/modules,

JSF how upgrade to Mojarra 2.1.21 in Netbeans7.1 (just sub jsf-api.jar and jsf-impl.jar fails)

╄→尐↘猪︶ㄣ 提交于 2019-12-18 05:22:07
问题 I want to upgrade from JSF implementation Mojarra 2.1.3 in Netbeans7.1 (Glassfish 3.1.1). You might ask first why I don't just upgrade to Netbeans7.3, and the reasons include that it it runs Glassfish 3.1.2.2 and that I have some other 3rd party software in my web application that is not yet compatible with Glassfish higher than 3.1.1, and besides it only has Mojarra 2.1.6 anyway. I used to be able to upgrade Mojarra by simply replacing jsf-api.jar and jsf-impl.jar under /glassfish/modules,

JSF Validation Error: Value is not valid [duplicate]

落花浮王杯 提交于 2019-12-18 04:22:17
问题 This question already has answers here : Validation Error: Value is not valid (3 answers) Closed 3 years ago . I know this seems to be a common one, but I'm lost with it. Occurs on clicking the Add button in assessment.jsf. Anyway, I've attached what I think are the relevant sections. FWIW, AssessmentType.equals() isn't triggered when I debug. Thanks in advance. j_idt38:j_idt47:j_idt48: Validation Error: Value is not valid assessment.xhtml: <h:form> <h:selectOneMenu value="#{assessmentBean