omnifaces

Filename characters encoding in Jsf 2.2 Upload vs. Apache Commons Upload

自作多情 提交于 2019-12-02 09:28:24
问题 Wildfly 8, Omnifaces 2.2, Primefaces 5.2, JSF 2.2.11 (Mojarra) I am using Ominifaces CharacterEncodingFilter to ensure that file names are encoded correctly on server. Oddly if Primefaces using Jsf internal upload, the file name are not encoded. And if Primefaces use older approach with Appache Commons it is ok. Example: 'Hällo.jpg' becomes 'Hällo.jpg' Web.xml configurations: Apache solution (correct): <filter> <filter-name>PrimeFaces FileUpload Filter</filter-name> <filter-class>org

Is it possible to create editable datatable using Omnifaces #{of:setToList}

为君一笑 提交于 2019-12-02 08:04:26
问题 I am trying to create a editable datatable whose values are java.util.Set. But in JSF-2.0 and 2.1 this is not possible as explained in Displaying objects from a Set collection in Datatable JSF does not work. Till now as a work around all Sets are converted to java.util.List and everything works. As mentioned in answer to var is the collection, not the item, I am trying Omnifaces #{of.setToList} so that I can avoid unnecessary conversion of Set to List. Everything works well when its a normal

@Eager is unavailable. The EagerBeansRepository could not be obtained from CDI bean manager

青春壹個敷衍的年華 提交于 2019-12-02 07:40:33
问题 This is my first usage of omnifaces. My app works well without it but when I tried it I get the following exception. java.lang.NullPointerException at org.omnifaces.cdi.eager.EagerBeansPhaseListener.afterPhase(EagerBeansPhaseListener.java:50) at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:123) at com.sun.faces.lifecycle.LifecycleImpl.execute

@Eager is unavailable. The EagerBeansRepository could not be obtained from CDI bean manager

断了今生、忘了曾经 提交于 2019-12-02 07:20:36
This is my first usage of omnifaces. My app works well without it but when I tried it I get the following exception. java.lang.NullPointerException at org.omnifaces.cdi.eager.EagerBeansPhaseListener.afterPhase(EagerBeansPhaseListener.java:50) at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:123) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:658) at org.apache

omnifaces starting before openwebbeans 1.5.0?

99封情书 提交于 2019-12-02 06:22:47
I am using Java 8 / Tomcat 8 / OpenWebBeans 1.5.0 / MyFaces 2.2.8 / DeltaSpike 1.3.0. As I want to use the openwebbeans-tomcat7 module, I placed the following jars in tomcat/lib : openwebbeans-web-1.5.0.jar openwebbeans-tomcat7-1.5.0.jar openwebbeans-spi-1.5.0.jar openwebbeans-resource-1.5.0.jar openwebbeans-jsf-1.5.0.jar openwebbeans-impl-1.5.0.jar openwebbeans-el22-1.5.0.jar xbean-finder-shaded-4.1.jar xbean-asm5-shaded-4.1.jar myfaces-impl-2.2.8.jar myfaces-api-2.2.8.jar geronimo-atinject_1.0_spec-1.0.jar geronimo-annotation_1.2_spec-1.0.jar geronimo-validation_1.0_spec-1.1.jar geronimo

Filename characters encoding in Jsf 2.2 Upload vs. Apache Commons Upload

[亡魂溺海] 提交于 2019-12-02 05:58:05
Wildfly 8, Omnifaces 2.2, Primefaces 5.2, JSF 2.2.11 (Mojarra) I am using Ominifaces CharacterEncodingFilter to ensure that file names are encoded correctly on server. Oddly if Primefaces using Jsf internal upload, the file name are not encoded. And if Primefaces use older approach with Appache Commons it is ok. Example: 'Hällo.jpg' becomes 'Hällo.jpg' Web.xml configurations: Apache solution (correct): <filter> <filter-name>PrimeFaces FileUpload Filter</filter-name> <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class> </filter> <filter-mapping> <filter-name>PrimeFaces

OmniFaces conditionalComment not written to HTML output

强颜欢笑 提交于 2019-12-02 05:26:21
问题 I'm using OmniFaces conditionalComment to load a javascript file for IE 6 browsers. On the webiste it says the script should be included in the page as: <script type="text/javascript" src="[JS library]"></script> <!--[if (gte IE 6)&(lte IE 8)]> <script type="text/javascript" src="selectivizr.js"></script> <noscript><link rel="stylesheet" href="[fallback css]" /></noscript> <![endif]--> This is not valid xml, so can't be used in the JSF xhtml files. Instead I use this: <h:body> <f:facet name=

java.io.NotSerializableException: org.omnifaces.taghandler.Converter

耗尽温柔 提交于 2019-12-02 05:24:46
问题 I would like to use OmniFaces ListConverter as my converter on PrimeFaces autocomplete . Unfortunately the following exception pops out when I tried to. As far as I'm concerned, JSF converters are not required to implement Serializable interface. I read the java ee 6 tutorial and was unable to find such a statement. References links : http://docs.oracle.com/javaee/6/tutorial/doc/bnaus.html http://docs.oracle.com/javaee/6/api/javax/faces/convert/Converter.html I had the feeling that MyFaces is

How to control http headers in JSF?

▼魔方 西西 提交于 2019-12-02 04:10:47
问题 PF 3.5(4.0), Omnifaces 1.6.3, Mojara 2.1.21 Is it possible to control http headers which will be sent inside of JSF xhtml page ? I mean something like: .xhtml : <html xmlns:http="a cool name space"> <h:head> <http:headers header="Cache-Control" value="no-cache, no-store, must-revalidate" /> </h:head> <h:body> .... </h:body> </html> 回答1: You mean not to instruct the browser for caching it? Just use a filter and add what you want to your response header: HttpServletResponse res =

java.io.NotSerializableException - org.omnifaces.taghandler.Converter

安稳与你 提交于 2019-12-02 02:15:52
问题 I have an application using Primefaces 3.5 with Omnifaces 1.5 on Jboss 6, using myfaces 2.1.5 on trying to use the o:converter I am getting the follow error. org.omnifaces.taghandler.Converter viewId=/xhtml/propelModules/initiatePropel.xhtml location=C:\jboss-6.1.0.Final\server\default\deploy\PropelEAR.ear\PropelWeb.war\xhtml\propelModules\initiatePropel.xhtml phaseId=RENDER_RESPONSE(6) Caused by: java.io.NotSerializableException - org.omnifaces.taghandler.Converter at java.io