apache / apache/netbeans

Detect JSF usage in plain JAR projects and activate JSF support accordingly

Open
#3,786 6 comments 0 reactions 0 assignees View on GitHub
Java EE/Jakarta EE kind:feature
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 13

### What happened

Netbeans 13 no longer recognizes the JSF tag "ui:composition" in xhtml files or even any other JSF related tags. Autocomplete suggestions on any JSF components, JSTL tags, or even simple bean property or method suggestions are also broken, for some reason it keeps suggesting attributes from angularJS? We use netbeans primarily for JSF development and unfortunately this makes Netbeans 13 unusable. This did not happen in Netbeans 12.6 so for now we have to go back to that version. Hopefully this can be fixed, otherwise netbeans is no longer viable option to use for any JSF development.

### How to reproduce

Open a XHTML file and press CTRL+SPACE on any JSF related tag, or even on a bean expression. Autocomplete either doesn't show, (says "No results") or just doesn't show any attributes of that JSF component/properties of that bean. You can also open any XHTML file which uses the "" tag, and netbeans wont be able to recognize it (see screenshots below)

### Did this work correctly in an earlier version?

Apache NetBeans 12.6

### Operating System

ElementaryOS 6.1 (based on Ubuntu 20.04.3) (also tested on windows, same issue)

### JDK

JDK17 Temurin-17.0.2+8

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

About the ui:composition tag, If this line is present
```

```
It looks like this:
![image](https://user-images.githubusercontent.com/32560510/158479179-a1c8d504-65e4-40c7-b0c1-b19df946d4c5.png)
![image](https://user-images.githubusercontent.com/32560510/158479245-9f2a127a-30df-4915-9f77-ff92109ffa78.png)

If I remove that line, it looks like this:
![image](https://user-images.githubusercontent.com/32560510/158480289-3fedf69a-b9a3-40e4-88f8-a5236684a7f1.png)

![image](https://user-images.githubusercontent.com/32560510/158480869-62632f77-d862-4464-a7b5-51f68ec40423.png)

But even then, the autocomplete suggestions are still broken.

If you need more information from me, please let me know.

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in a plain JAR project with an XHTML file, using the reported JSF tags and bean expressions with and without the DOCTYPE line. Trace the JSF recognition and autocomplete entry points, then verify that JSF, JSTL, component attributes, and bean properties are recognized and suggested correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, java
Domain
developer-experience, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.