Questions tagged [richfaces]
RichFaces was a component library for JSF and an advanced framework for easily integrating AJAX capabilities into business applications. It reached end-of-life in June 2016.
3,713
questions
0
votes
0
answers
24
views
How to reset old value on selectOneMenu
when I choose a value from my dropdown list I have to check if this value exists in a map, if it exists, I have to reset the dropdown list with the old value. How can I do this please.
This is my code ...
0
votes
0
answers
48
views
JSF 1.2 to upgrade to the latest version / Update to latest jQuery version
I am facing an issue with my current application using JSF 1.2 version. As I am working on resolving some vulnerability issues, we need to update the application so that the jQuery is at 3.6.3 which ...
2
votes
0
answers
107
views
Migration Richfaces -> Primefaces : rich:collapsibleSubTable migration
I trie to migrate an page using richfaces to primefaces.
I have a rich:datatable with multiple rich:collapsibleSubTable.
I tried to replace that with p:datatable and p:subtable like this
<p:...
1
vote
1
answer
70
views
Is there a way to replace richfaces tag "<a:queue" to primefaces and JSF 2.2
I need to migrate my legacy application using JSF 1.2/SEAM to JSF 2.2.
I need to replace the following code in one of the template files
<a:queue name="ic" requestDelay="250"/&...
0
votes
0
answers
170
views
deploy richfaces 4.5.17 web project in tomcat 10
I am trying to deploy richfaces 4.5 web project in tomcat 10 but getting error (it was working fine in tomcat 9)
changed all imports (javax -> jakarta)
tomcat 9 run on servlet 4 and tomcat 10 run ...
0
votes
0
answers
32
views
Why does richfaces 4.5.1 show components' IDs together with the label?
I'm migrating a microservice from Richfaces 3.3 to 4.5.1 and I have this strange problem:
when using a component like <rich:accordion id="menu" label="Menu"> I have no errors,...
0
votes
2
answers
51
views
rich:dataList vertically ordered between 2 columns
I have a dataGrid with 2 columns and a panelGrid inside it that shows the data correctly, but it fills both columns before changing row. I need it to fill first column, with half of list content and ...
0
votes
0
answers
54
views
Can we use <h:selectManyCheckBox> inside <rich:select>
I have just started to use jsf rich faces and my client wants a drop down list with multiple items with checkboxes. .
My code look like this but i am not getting desired result:
<rich:select id=...
0
votes
1
answer
30
views
RichFaces 4.5.15 x panelBorderRadius
I have tried to configure panelBorderRadius creating a new skin (from https://docs.jboss.org/richfaces/latest_4_5_X/Developer_Guide/en-US/html/chap-Developer_Guide-Skinning_and_theming.html#sect-...
3
votes
0
answers
425
views
java.lang.IllegalArgumentException: Cannot convert com...DocumentType@24 of type class com...DocumentType to class java.lang.Boolean
I am gettting the error
java.lang.IllegalArgumentException: Cannot convert com...DocumentType@XX of type class com...DocumentType to class java.lang.Boolean
only when I try to display my documents....
0
votes
0
answers
30
views
RichFaces Data Table Quirk
With RichFaces you can create a data table like this:
<rich:dataTable id="myTable" value="#{myBean.values}" var="value">
<f:facet name="header">
...
0
votes
1
answer
237
views
JSF 1.2 Rich File upload throwing IOException
I am trying to implement rich:fileUpload in a very old system using java8, JSF 1.2, RichFaces 3.3.3.Final, net.java.dev.ajax4jsf 1.0.6, on Glassfish 4.1. The system is massive so please don't ask me ...
0
votes
1
answer
180
views
JSF app with the error: Uncaught ReferenceError: RichFaces is not defined
An application is migrated and now there is an issue when een page is opened and in the console I see the error: "Uncaught ReferenceError: RichFaces is not defined"
It's a Java application ...
0
votes
0
answers
55
views
Emulate bypassUpdates when migrate from RichFaces to PrimeFaces
What's the best way to emulate the bypassUpdates property of a4j:support? This property skip JSF phase 4 and 5, no matter if validation success or not.
Thanks.
0
votes
0
answers
53
views
Performance issue migrating from Richfaces 3.3.x to PrimeFaces 10.0.0
I'm working migrating a legacy software that use a lot of cases like <ui:repeat var="area" value="#{areaList.getResultList()}">. Where getResultList() executes a DB query. ...
0
votes
0
answers
31
views
First h:form of an a4j:repeat is not rendering correctly
Let's say that I have a list of objects in my bean and I want to paint them in my page, for that I'm using an <a4j:repeat>, this objects need to be wrapped inside a <h:form> because each ...
-1
votes
1
answer
47
views
Unable to find rich autocomplete id during input validation with jQuery
I have a rich:autocomplete field along with a few text input fields under a rich:panel. During input validation with the following code, all text input fields are found however the rich autocomplete ...
0
votes
1
answer
115
views
rich:dataScroller won't reset at page 1 on a new search
i'm facing a problem with component rich:dataScroller:
when i trigger an actionListener to fill a datatable with new data and the table (made with component rich:dataTable) is currently at page > 1,...
0
votes
1
answer
97
views
How I can color the entire row using the information from the entity?
I have the following table in a .xhtml file. I want to color the entire row of the table, not only the text background. How can I do this in RichFaces?
Note: the table has more columns, I just posted ...
0
votes
1
answer
43
views
RichFaces 3: how to apply/change styles for rich:pickList displayed items
I can't figure out how to use the provided in the docs attributes to apply the styles to the displayed items. There is nothing similar n the provided examples where the items are already aligned to ...
0
votes
1
answer
417
views
How to use OWASP Encode.forHtmlContent with JSF <h:outputText> and other output elements from RichFaces?
I tried to find this in a lot of places, but it is not clearly written anywhere. For example in this documentation the usage is given only for JSP but not for JSF.
Example used in the documentation :
&...
0
votes
0
answers
47
views
FilterServletResponseWrapper replacement when migrating Richfaces to Primefaces. For file download
I am migrating a project from Richfaces to Primefaces and I am having problems getting file download to work again. The original uses a standard h:commandLink which tells the webflow to start the ...
1
vote
0
answers
47
views
How I can click the same jsf command button twice?
I open a popup using the jsf command button. After closing the popup, when I click the same button again, I cannot open the popup. So when I click the same button twice, I cannot open it. When I debug ...
0
votes
1
answer
393
views
Display the last 10 rows of the database
Question: Hello everyone, I am working on a project with Richfaces I want to display the last 10 rows of my database (MySQL), this is part of the code I use to display all the rows saved in my ...
0
votes
1
answer
40
views
Is there a way to default Richfaces to use long-polling for push instead of WebSockets?
I've seen answers for older versions of Richfaces to put richfaces.Push.transport = "long-polling in the JavaScript, but that doesn't seem to work anymore. Especially when using packed.js (org....
1
vote
0
answers
116
views
How to set up pom.xml for RichFaces 4.5.17.kcc5 and Primefaces 7.0.RC3 working together on the JSF 2.3 project
Originally my project is set up for RichFaces 4.5.17.kcc5 and it works fine.
After I added the PrimeFace 7.0.RC3 library to the project, my build stop installing (mvn clean install) and I start ...
0
votes
1
answer
60
views
Delete elements from a dynamically updated data table
I have a Richfaces 1.2 dataTable that is updated every 2 seconds using a a4j:poll request. It sends a request to the server and reRender the table adding new elements and changing the state of ...
0
votes
1
answer
33
views
Progress popup showing up after cancelling action in the confirmation popup
I have below code written to show a confirmation popup when deleting a user. Also I have progress popup ( tied to other pages also) which I have attached to this action.
But since both of them are ...
-1
votes
1
answer
354
views
Migrate JSF RichFaces project from JSF 2.0 to 2.3 [closed]
How to Migrate from JSF 2.0 to JSF 2.3 in existing EJB with RichFaces Project.
Please suggest the steps to be followed.
0
votes
1
answer
235
views
How to generate a matrix with JSF, Primefaces and Richfaces
I'm trying to make a 5x5 matrix in JSF 2.2 with Primefaces 6.2 and Richfaces 4.5.16.Final.
Quite similar to Generate Matrix Datatable with JSF Framework like Primefaces.
The only difference is, I want ...
0
votes
0
answers
730
views
JSF 2.1 and RichFaces migration to JSF 2.2
We are migrating our large application (which uses JBoss EAP 6.2 + RichFaces 4.3.5 + JSF 2.1.19) to a newer server . ie (JBoss EAP 7.2)
Can anybody suggest a stable combination of JSF+RichFaces+JBoss ...
0
votes
0
answers
356
views
Remove jquery.js reference coming as part of Richfaces 4.x
During a security scan it was found that jquery.js ( version 1.12.3 ) coming as part of Richfaces 4.x to our application is a vulnerability . So we had to mitigate that and try to resource map it so ...
0
votes
0
answers
329
views
How to use javascript inside xhtml files
I have a js file(abc.js) and having a function increment().Which stores count of places as var noOfPlaces.
In the xhtml file.Have a component which is having onclick function.
I want to have if else ...
-1
votes
1
answer
67
views
WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. site:stackoverflow.com
com.sun.faces.lifecycle.RenderResponsePhase execute INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. site:stackoverflow.com
1
vote
1
answer
746
views
How to add csrf token for immediate file upload for Spring Security 3.2?
I have been trying to add CSRF token for file uploads in my Spring application having spring security 3.2. The Spring Security CSRF documentation suggests we add MultipartFilter before the spring ...
1
vote
0
answers
169
views
JSF1.2 and RichFaces 3.2.1 upgrade
I have the project which is designed and developed on very legacy frameworks. The frameworks which we are currently using are:
jboss-seam-2.2.1.jar
jsf-api-1.2_04-p02.jar
jsf-facelets-1.1.14.jar
jsf-...
1
vote
0
answers
225
views
Rich:Editor - com.sun.faces.application.view.StateHolderSaver cannot be cast to [Ljava.lang.Object;
I'm facing an annoyng problem and i hope someone can help me.
I'm using JSF 2.0, Mojarra 2.0.9 and RichFaces 4.3.0_final.
Trying to add a Rich Faces Editor into a jspf page, but when the page is ...
0
votes
0
answers
177
views
Is there a way to use rich:columnGroup in rich:extendedDataTable?
I got the task to convert one of our old tables, which was built with rich:dataTable into a rich:extendedDataTable. In the old tables we worked with rich:columnGroup to split the header into 2 rows. I ...
0
votes
0
answers
82
views
Bootstrap 4 doesnt collapse
i'm getting troubles on using bootstrap 4 in a jsf - richFaces web application.
I have a template that include 2 portion of .xhtml pages
Seems that accordions divs doesnt recognize Bootstrap classes. ...
0
votes
1
answer
971
views
Javascript working in HTML but not XHTML JSF
I am working on a web-app that is using JSF 2.1 and RichFaces 3.3
I have an external piece of Javascript that needs to run across all of the applications' pages, so I put it in the head of my ...
0
votes
2
answers
396
views
How to fix RichFaces' resources being included multiple times with JBoss EAP 7.3.0?
I'm migrating from JBoss EAP 7.1 to 7.3 at the moment and one of my problems is related to RichFaces – which is EOL with v4.5.17 for a very long time – I know. But nevertheless I need to cope with ...
1
vote
1
answer
1k
views
RichFaces FileUpload and Flash Support ending in 2020
Well, in my company we have a legacy web system that uses JSF 1.2, Seam 2.2 and RichFaces 3.3
Well, there's one part of the system that uses rich:fileUpload with FlashSupport, but as we know Flash ...
0
votes
1
answer
68
views
How to override the default image loaded by a facet of orderingList richfaces component
I'm trying to change the image loaded by default in the facets of orderingList richfaces component.
The default image is being loaded from DATB folder so i'm trying to override the loading and make ...
0
votes
1
answer
44
views
richface resizable columns
I'm just trying to modify some of our tables, especially in the way that the columns can be made bigger or smaller by dragging them with the mouse. Unfortunately I don't get it done and my google ...
0
votes
1
answer
244
views
update outputtext from class
I have a RichFaces project on JSF 2.2 and I wanted to show status updates and messages to the user while processing their request. I wanted to use a a4j:outputpanel with a simple outputext for this. I ...
0
votes
1
answer
162
views
rich:modalPanel doesn't show up anymore if h:commandButton was clicked
First of all, this issue is on Edge only, everything works just fine on Chrome and Firefox.
I'm working with JSF 1.2 and RichFaces 3.3.3.Final (with community fix for IE9+).
I have a rich:modalPanel ...
1
vote
1
answer
60
views
Upload file ricefaces fails when text file has leading space
I have xhtml file that uploads pictures pdf and txt files. code below
<rich:fileUpload fileUploadListener="#{DfeOper017MBean.listener}" listWidth="600px"
...
0
votes
1
answer
605
views
How to show javax.faces.context.FacesContext exception message inside an alert
I have a menu item which calls a method. When it fails, I want the ajax call shows a alert with the exception message.
menu.xhtml
<rich:panelMenuItem
id="test"
name="test"
label="Ajax ...
1
vote
0
answers
620
views
JSF 2 - ReRendering problem after upgrading to richfaces 4.5.17.Final
a4j:commandLink and a4j:commandButton are not rendering results properly after upgrading richfaces from 4.2.2.Final to 4.2.17.Final.
Page loads data, only after refreshing page.
Sample:
a4j:...
0
votes
1
answer
142
views
In rich:fileUpload, if the user tries to upload an empty file i.e 0 bytes file then how can we display an error popup
In rich:fileUpload, if the user tries to upload an empty file i.e 0 bytes file then how can we display an error popup
i tried using the onclick="emptyFileCheck();", but the emptyFileCheck() method is ...