Kashmira
Kashmira

Reputation: 21

Project upgrade with RichFaces getting compilation error for org.richfaces.event.DataScrollerEvent

We have upgraded JSF project. We converted all javax.faces.* packages with jakarta.faces.* but project in not getting compiled.

For org.richfaces.event.DataScrollerEvent getting compilation error.

org.richfaces.event.DataScrollerEvent is extended from javax.faces.event.ActionEvent but now we have to use jakarta.faces.event.ActionEvent.

How is it possible?

code which is not compiling.

DataScrollerEvent dataScrollerEvent = actionEvent //jakarta.faces.event.ActionEvent.

Have to use jakarta.faces.event.ActionEvent instead of javax.faces.event.ActionEvent with org.richfaces.event.DataScrollerEvent

Upvotes: 1

Views: 216

Answers (1)

BalusC
BalusC

Reputation: 1109412

You basically need to upgrade RichFaces too.

But that's going to be a bit difficult. RichFaces is EOL since June 2016, so it is not anymore actively maintained by the original developers. There is currently only one fork at Github which is still active, the RichFaces fork of Alberto Fernández, but it has currently no jakartified version. You might want to try to open an issue over there with a request to create a jakartified version. Or you could just fork it further yourself and jakartify it yourself. Alternatively, you could use the Eclipse Transformer to jakartify a JAR library, see also How to use Java EE and Jakarta EE dependencies together?

But, in long term perspective, you really need to bite the bullet and replace RichFaces by a currently still actively maintained JSF component library such as PrimeFaces. It has a fine <p:dataTable> component with extensive paginatior (same as "data scroller" as they call at RichFaces).

Upvotes: 1

Related Questions