richfaces

Unable to select a particular radio button choice by clicking on the choice text

谁说胖子不能爱 提交于 2019-12-24 09:57:10
问题 <s:decorate template="/layout/display-text.xhtml"> <h:selectOneRadio layout="pageDirection" value="#{_userHome.pref}"> <f:selectItems value="#{_userHome.getPreferences()}" /> </h:selectOneRadio> </s:decorate> I am able to select user preferences by directly clicking on the text next to the radio button choice in all browsers except Firefox. How should I fix this? 回答1: You need to add a <label> element for the radio button so that your markup looks as follows: <label for="radio-button">Radio

RichFaces File Upload throws NullPointerException

吃可爱长大的小学妹 提交于 2019-12-24 09:53:22
问题 I'm having a lot of trouble trying to get a file uploaded using RichFaces (I'm very new to a lot of the technologies I'm using at the moment which is definitely compounding the issue). I'm able to add a the file upload component to the page but it keeps giving me an error whenever I try to upload an image. The error I'm getting is as follows (at least the start of it is): 10:10:51,029 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] /profile.xhtml @49,25 fileUploadListener="#

Richfaces not working without old ViewHandler?

别来无恙 提交于 2019-12-24 09:27:35
问题 In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2 , jsf-impl-2.0.2 and jsf-facelets-1.1.15.jar , and in faces-config.xml there is <view-handler> configured like this: <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> I know that in JSF2 you don't need jsf-facelets. You also don't need to configure <view-handler> in faces-config.xml. So I removed facelets jar and <view-handler> line from faces

How to know which item is clicked in richfaces PickList

送分小仙女□ 提交于 2019-12-24 08:47:13
问题 I am using richfaces 4.1.0M2 with JSF2.0 and I have a PickList and what I want is that when someone selects (mouse click) an item in the left list, some component in the form is updated based on what is clicked. I have managed to trigger an event in the bean whan some one clicks on an item. The code to achieve the trigger is <rich:pickList showButtonsLabel="false" value="#{groupBean.pickListResult}" listHeight="100" converter="#{groupBean.converter}"> <a4j:ajax event="click" render="userlist"

Primefaces confirm dialog not centered when used in conjuntion with richfaces

冷暖自知 提交于 2019-12-24 07:28:19
问题 As per my question title, when I use richfaces, specifically a rich:popupPanel, my primefaces confirm dialog, p:confirmDialog, gets placed top/left justified. If I remove the the richfaces popup panel the primefaces dialog gets centered in the browser window as expected. I tried changing the order of the namespace entries but that didn't work. What else can I try. I see richfaces also has a confirm dialog that I'm going to look into, it's just that I already had the primefaces version working

I need to convert h:outputtext

一个人想着一个人 提交于 2019-12-24 07:17:34
问题 I have a rich:datatable to show records on a DB and there are some columns in. Here is an example : <rich:dataTable id="myTable" var="myItem" value="#{myList}"> <rich:column width="25%"> <h:outputText value="#{myItem.myValue}" /> </rich:column> ... Table shows the records fine. I want to show h:outputText value as a different value (I mean convert it). For example, reversed string or "find&replaced" result of it. There are numberConvertors, dateConvertors but couldn't find for Strings. A

Composition is not rendered in Richfaces tabPanel

北城以北 提交于 2019-12-24 07:06:39
问题 I am a user of JSF and Richfaces. I will simplify the code about my question to make things easier. I have a composition named 'mytab.xhtml' defined like following: <cc:interface> <cc:attribute name="header" required="true"/> </cc:interface> <cc:implementation> <rich:tab id="my-tab" header="#{cc.attrs.header}" > <cc:insertChildren /> </rich:tab> </cc:implementation> This composition is used in another xhtml file like following: <rich:tabPanel id="tp" switchType="ajax" headerPosition="top" >

Heartbeat while having a long-lasting request

橙三吉。 提交于 2019-12-24 06:45:09
问题 How can I implement a heartbeat with JSF 1.2, RichFaces 3.x using SEAM 2.x which also works during a long-lasting request executed by an user? Currently, we've got a heartbeat (to avoid session timeout) using <aj4:poll action="#{bean.keepAlive}" ... /> which does not work during long-lasting requests on the server. Using an own eventsQueue="heartbeat" allows that the required heartbeat is sent even while executing a long-term request but leads us into a org.jboss.seam

How do I set the HttpOnly flag on JSF/Richfaces

六月ゝ 毕业季﹏ 提交于 2019-12-24 04:12:33
问题 I'd like to add the HttpOnly flag to JSF/richfaces cookies, especially the session cookie, to up the level of security on my web app. Any ideas? 回答1: There may be something that allows you to do this in your servlet engine. This is part of the Servlet 3.0 spec which is yet to be released. 回答2: FacesContext facesContext = FacesContext.getCurrentInstance().getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(

How do I set the HttpOnly flag on JSF/Richfaces

China☆狼群 提交于 2019-12-24 04:12:00
问题 I'd like to add the HttpOnly flag to JSF/richfaces cookies, especially the session cookie, to up the level of security on my web app. Any ideas? 回答1: There may be something that allows you to do this in your servlet engine. This is part of the Servlet 3.0 spec which is yet to be released. 回答2: FacesContext facesContext = FacesContext.getCurrentInstance().getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(