Migration to jakarta - primefaces-verona.taglib.xml

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
iljkr
Posts: 35
Joined: 30 Dec 2013, 20:52

26 Jul 2023, 10:52

Hi,
i am migrating an application to tomcat 10 and jakarta, with spring 6 and jdk 17.

I use primefaces 11 and verona 6.0.

For primefaces I added <classifier>jakarta</classifier> to maven.

I extends org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer to initialize the jakarta.servlet.ServletContext, in this class I set:

Code: Select all

servletContext.setInitParameter("jakarta.faces.FACELETS_LIBRARIES", "/WEB-INF/primefaces-verona.taglib.xml");
Looking inside primefaces-verona.taglib.xml I noticed it used the javaee namespaces instead of jakartaee:

Code: Select all

<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
		version="2.0">
Do I need to change these definitions? What should I write inside the facelet-taglib tag?

I suppose sometinghe like this:

Code: Select all

<facelet-taglib xmlns="https://jakarta.ee/xml/ns/jakartaee"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-facelettaglibrary_3_0.xsd"
		version="3.0">
I already changed the web.xml, web-fragment and faces-config files from javaee to jakartaee.

In general, is there a jakarta migration guide for premium templates to make sure I don't forget something?
For example I changed the jar verona-theme-6.0.0.jar to the jar verona-theme-6.0.0-jakarta.jar, is there anything else to do?

Thanks in advance, regards.
javax.faces-2.3 | primefaces-7 | tomcat 8.5

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Aug 2023, 08:20

Hi,

Yes, you need to make these changes. Also, instead of using jars, add Verona*.java files to your project instead.

Note: We do not currently have a migration guide.

Best Regards,

Post Reply

Return to “Verona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests