omnifaces

Navigate to previous page with JSF

一个人想着一个人 提交于 2019-12-13 06:49:13
问题 I use a backing bean where I can save a form and navigate to this page. public String saveHere() { return Faces.getViewId() + "?faces-redirect=true&includeViewParams=true"; } How do I navigate to the previous page with OmniFaces? My save action should result in the page where I have the "edit" button. Typically a list-view (with edit-button next to very item) or another page with (with edit-button to this item) Thanks! 回答1: You need the page id you're navigating from somewhere. At first look,

ignoreValidationFailed doesn´t work inside p:dataTable

試著忘記壹切 提交于 2019-12-13 02:07:27
问题 I am using actionListener ajax call inside datatable and trying to do the following : skip validation update the model with the inserted values I knew that omnifaces utility liberary by BalusC can do this using o:ignoreValidationFailed But it failed with me to work inside primefaces datatable. Also I found that it failed to work inside ui:repeat in another post here I dont know if its a bug or not. here is my code example <o:form id ="trans_desc_form"> <p:outputPanel id="stkdetailsid"> <p

How can I embed an SVG image using JSF/OmniFaces/PrimeFaces?

自作多情 提交于 2019-12-13 01:50:41
问题 Here's what I'm trying to do: I have a @ViewScoped JSF bean in which I call a JAX-RS service using Jersey. The resource I'm requesting returns a response with content-type image/svg+xml . Display it in a Facelet page. My research so far has lead me to believe: h:graphicImage (Core JSF) does not support SVG p:graphicImage (PrimeFaces) does not support SVG o:graphicImage (OmniFaces) does not support SVG either. Is there no way to deliver an SVG image to a facelets page from a backing bean? The

Error trying to add composite component programmatically (“no tag was defined for name”)

北战南征 提交于 2019-12-12 23:21:46
问题 I'm facing one of those errors that you're almost sure that you're not doing anything wrong, but the error simply won't go away, no mather what you do. I have this composite component: inputMask.xhtml <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:composite="http://xmlns.jcp.org/jsf/composite" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> <composite:interface> <composite:attribute name="value" />

Primefaces selectManyMenu default selection

喜你入骨 提交于 2019-12-12 17:29:14
问题 Does p:selectedManyManu allow default selection? I have been unable to implement this. I even tried Omnifaces ListConverter and selectItemsConverter without success. Any help or pointer is appreciated. More than one item could be selected by default when the page loads. here is my code: POJO: public class LocationRef implements Serializable{ private integer Seqid; private String locname; private String locaddress; private String phonenumber; //getters and setters //tostring //equals, hashcode

Mojarra 2.1.6 not working as expected with OmniFaces FullAjaxExceptionHandler

回眸只為那壹抹淺笑 提交于 2019-12-12 10:17:00
问题 My environment is: JDK 6u31 GlassFish 3.1.2.2 Mojarra 2.1.6 (bundled with GF) PrimeFaces 4.0 OmniFaces 1.6.3 I configured both FacesExceptionFilter and FullAjaxExceptionHandler for my application, and they work fine for all kinds of exceptions, except javax.faces.application.ViewExpiredException . If I invalidate the session and then click a button, the error page for a RuntimeException is shown, after the following exception is thrown: INFO: Session invalidated SEVERE:

How to embed SVG graphics properly in JSF application using OmniFaces

我的梦境 提交于 2019-12-12 06:02:26
问题 This is a follow-up to How can I embed an SVG image using JSF/OmniFaces/PrimeFaces? In that question, I learned that the OmniFaces-2.1 snapshot supports utilizing InputStream/byte[] through it's o:graphicImage tag. In Getting started with SVG graphics objects in JSF 2.0 pages I learned that the standard graphicImage tags simply renders an img tag and SVG's should be rendered as and object tag like this: <object type="image/svg+xml" data="#{bean.svgUrl}"> . My question is really directed

OmniFaces graphicImage method throws IllegalArgumentException

醉酒当歌 提交于 2019-12-12 05:09:21
问题 as already covered in this SO post I was successfully creating an h:outputLink with of:graphicImageURL('imageBean.getFirstImage(Long id, boolean thumbnail)') . This works fine on my local machine. However, when I deploy it on one of my production servers (two instances of the software, both sharing the exact same Java Code, runs perfectly fine on Server A but not on Server B), it throws the following exception: Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun

ui:repeat in o:treeNodeItem

北战南征 提交于 2019-12-12 04:34:10
问题 I have an <o:tree> where i am displaying list of persons and each person what it has children and every child what it have children where the level of children is not known The data is displayed correctly but the displayed node is an <h:commandLink> where its action is a java bean function Snippet of java code : public class PersonController{ //class Person having List of children //some code public void readChild(double childId){ } //some code } Snippet of jsf code : <o:tree> <o:treeNodeItem

jetty9,spring4.2,hibernate5,omnifaces2.2,can't work - “CDI BeanManager instance is not available in JNDI.”

橙三吉。 提交于 2019-12-12 04:04:57
问题 The application can't startup correctory,the root cause is: java.lang.IllegalStateException: CDI BeanManager instance is not available in JNDI. at org.omnifaces.config.BeanManager.<init>(BeanManager.java:106) at org.omnifaces.config.BeanManager.<clinit>(BeanManager.java:49) at org.omnifaces.application.OmniApplication.<init>(OmniApplication.java:69) at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89) at org.omnifaces.application