Cannot resolve symbol 'ui:define'

已回答

I started a Jakarta Faces Project, but all Faces-Tags in my *.xhtml are red:

URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)  (xmlns:f="jakarta.faces.core")

Cannot resolve symbol ‘ui:define’

Cannot resolve symbol 'ui:include'

Element ui:composition must be declared

and so on. The Jakarta Faces Plugin is installed. What else can I do?

 

0

Hello,

Does it help if you add jakarta.jakartaee-api dependency?

If it doesn't help, please share a sample project that reproduces the issue (you can upload it to https://uploads.jetbrains.com and share the upload ID)

0

Thanks for your support. I already added this dependancy, as far as I understand, this is the main jakarta ee 10 dependancy that contains all the libs needed.  I guess, it is some kind of project/ide/... setting that I didn't set right yet. I will upload the project, it is still super tiny.

0

Hi,

the Upload ID is: 2023_11_17_rwtMaVMmPza4y81ANQTd3r 

 

Thanks in advance.

Thomas

0

Hello,

I'm not able to reproduce the issue with your project (xmlns:f="jakarta.faces.core" and ‘ui:define’ are recognized correctly in my case).

Please try the following steps:

- File | Invalidate Caches... | Invalidate and Restart

- Uninstall and install again Java EE: Server Faces (JSF) Plugin

- Check and install suggested plugins (https://www.jetbrains.com/help/idea/managing-plugins.html#check-suggested-plugins)

If it doesn't help, please collect logs via Help | Collect Logs and Diagnostic Data (entire archive). I'll check your setup and possible exceptions. Upload logs and screenshot of the issue via https://uploads.jetbrains.com

0

Thanks for your response, I uploaded the logs, 

Upload id: 2023_11_19_skUmPpZx6xq5jAHjhjD5hy (file: idea-logs-20231119-1325418793244434139657573.zip

 

 

 

0

I don't see any problems in the logs. Can you please try to reimport the project the following way:

- restore IDE default settings via File | Manage IDE Settings | Restore Default Settings (the current settings will be backed up and you'll be able to restore it via File | Manage IDE Settings | Import Settings)

- install Java EE: Server Faces (JSF) Plugin

- open your project in OS file explorer and remove all *.iml files and the .idea folder from your project

- delete the IDE system folder while the IDE is closed. All your settings except Local History will be preserved

- reimport project the following way: https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start

 

0

Hi, this procedure worked very well, thank you very much for your support.  

Kind regards 

Thomas

0

请先登录再写评论。