omnifaces

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

寵の児 提交于 2019-12-02 02:14:45
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 trying to unserialize any object used on my page. How can I handle that situation? Environment

How to use OmniFaces Ajax.updateColumn() or Ajax.updateRow() via p:ajax

只谈情不闲聊 提交于 2019-12-02 01:52:05
I am attempting to use the Ajax.updateColumn() method of the OmniFaces 1.3 (SNAPSHOT) Ajax utility. More specifically, I want to replace the use p:ajax update=":pageContentPanel", which is an h:panelGroup (or p:outputPanel) which contains the following xhtml, with the use of Ajax.updateColumn(table, 1). <h:dataTable id="dt_tripDates" style="width: 200px !important;" var="tripDate" value="#{pf_ordersController.tripDates}"> <p:column style="text-align: right !important;"> <h:outputText id="rowNumber" value="#{tripDate.rowNumber}" /> </p:column> <p:column style="text-align: center !important;">

How to control http headers in JSF?

北慕城南 提交于 2019-12-02 00:44:56
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> Xtreme Biker 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 = (HttpServletResponse) response; if (!req.getRequestURI().startsWith( req.getContextPath() + ResourceHandler

OmniFaces conditionalComment not written to HTML output

偶尔善良 提交于 2019-12-02 00:33:43
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="last"> <o:conditionalComment if="if (gte IE 6)&(lte IE 8)"> <h:outputScript library="js" name=

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

允我心安 提交于 2019-12-01 23:42:39
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.ObjectOutputStream.writeObject0(Unknown Source) The code concerned is ... <p:selectManyCheckbox value="#

Memory implications of OmniFaces ViewScoped bean?

蓝咒 提交于 2019-12-01 22:29:22
From what I understand, ViewScoped beans only get destroyed when one of the following take place: 1) JSF sends a POST request to another page with something like a <h:commandLink...> 2) The number of open beans exceeds the maximum threshold setting (default of 15) 3) The user's session expires Here is my confusion: Does #1 mean that if a user navigates away from the page with a GET request, the bean will stay open, even if eventually a JSF POST happens in the same browser tab on another page? Or will all active @ViewScoped instances for that browser tab be destroyed once a JSF POST is sent

Primefaces 3.5 + OmniFaces 1.3 SelectItemsIndexConverter issue with SelectOneMenu

只愿长相守 提交于 2019-12-01 20:40:53
I'm using Primefaces 3.5 5th December 2012 SNAPSHOT, with Mojarra 2.1.14 and Tomcat 7.0.33. When using the in-cell editing mode (not in-row) for POJO objects with a model/entity class that are represented in a h:selectOneMenu, with 'click' as the celleditevent value, whenever you click on an object and then 'click away' by clicking on some other object, the previous object is displaying its value instead of its label. This is only 'cosmetic' as when you reload the page, it will show the label value. <p:dataTable id="insurancepolicyTable" var="insurancepolicy" widgetVar="insurancepolicyList"

How can I skip bean validation if all fields for the entity are empty?

断了今生、忘了曾经 提交于 2019-12-01 19:46:15
问题 I have a address entity like this: @Entity public class Address implements java.io.Serializable { @Id @GeneratedValue(strategy = IDENTITY) private Long id; @Size(max = 100) private String street; @Size(max = 15) private String nr; @Field @Size(min = 1, max = 20) @NotBlank private String city; } This is part of several other entities. For one such entity the address is optional. I have a view where our users can edit the whole entity via several form inputs, including several address fields.

How can I skip bean validation if all fields for the entity are empty?

妖精的绣舞 提交于 2019-12-01 18:26:15
I have a address entity like this: @Entity public class Address implements java.io.Serializable { @Id @GeneratedValue(strategy = IDENTITY) private Long id; @Size(max = 100) private String street; @Size(max = 15) private String nr; @Field @Size(min = 1, max = 20) @NotBlank private String city; } This is part of several other entities. For one such entity the address is optional. I have a view where our users can edit the whole entity via several form inputs, including several address fields. To be able to edit the address, I initialize the parent entity with an empty address entity. Now the

WELD-001519 An InjectionTarget implementation is created for an abstract class 'xxx'. It will not be possible to produce instances of this type

删除回忆录丶 提交于 2019-12-01 18:16:42
I'm running an application in the following environment. GlassFish Server 4.0 Mojarra 2.2.4 PrimeFaces 4.0 final PrimeFaces Extension 1.1.0 OmniFaces 1.6.3 After adding OmniFaces, the following warnings appear on the server terminal. WARNING: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultServletContextListener. It will not be possible to produce instances of this type! WARNING: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.filter.HttpFilter. It will not be possible to produce