Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [faces-dev] Regarding an exception using JSF4

Hi,

Indeed, using JoinFaces and potentially some other code, you can use Faces 4 with Spring. 

Essentially, on top of using JoinFaces, the best way forward is to add filters for bean scanning for both CDI and Spring Beans. CDI should be set to exclude all beans that you know are Spring Beans (easiest to have them all in a specific package structure), and Spring to do the reverse; exclude all beans you know are CDI beans.

Then backing beans in your project all become CDI beans (@ManagedBean becomes @Model, or @Named with some scope), which call out to your business code, which I guess is in Spring Beans.

Indeed, as Jason mentions, the rule for bean.xml have dramatically changed, and an empty beans.xml no longer works. You need to include a proper header and version inside it.

Kind regards,
Arjan Tijms



On Thu, 2 Mar 2023 at 16:33, Thomas Andraschko <tandraschko@xxxxxxxxxx> wrote:
Faces 4 requires CDI, its not optional anymore. Maybe you can have a look at Joinfaces, its contains a bridge between Faces and Spring.

Am Do., 2. März 2023 um 16:21 Uhr schrieb FARAH, ISHAK G (CTR) via faces-dev <faces-dev@xxxxxxxxxxx>:

Hello,

 

Using Jakarta EE 10 :

In upgrading from JSF2.2 to JSF 4 and spring framework 6

Trying to deploy on tomcat 10.1.x

I got an Exception that CDI is not available, it seems that there is a conflict with spring IoC

Please, advise how to solve this problem

 

Sincerely
Isaac Farah


Senior Software Engineer, Leidos Inc.
Contractor Supporting:

Passenger System Program Office
Customs and Border Protection
Department of Homeland Security

CBP/OIT/PSPD

Cell# (703)554-5682
Telework M-F

 

_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev

Back to the top