Style not applied - MIME type ('text/html")

Post Reply
renatonegrao
Posts: 6
Joined: 13 Jan 2012, 15:34

03 Jul 2022, 22:09

Hi,

After incorporated the Prestige layout in a project, the style stopped to be applied at the pages and the following error is being presented Chrome console:
Refused to apply style from 'http://localhost:8080/project.ui/consul ... _NOT_FOUND' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

To incorporate the Prestige layout at the project, we followed the following steps:

- Removed from resources and web-inf folders, all files related to the previous theme;
- Copied resources folders from demonstration application to the the project;
- Copied the files Prestige templates files to the web-inf folder;
- Reviewed the menu.xhtml, faces-config.xhtml and web.xml;
- Downloaded Primefaces version 11.0.6 and updated POM.xml file.

Any recommendation about this issue?

Thank you

Renato

renatonegrao
Posts: 6
Joined: 13 Jan 2012, 15:34

04 Jul 2022, 04:47

Hi,

I identified the problem. When I copied the files, I missed the demo.css that is included at the template.

Thank you

Renato

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

08 Jul 2022, 10:22

Hi,

Has the problem been resolved?

Best Regards,

Post Reply

Return to “Prestige - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest