NetBeans 23: Issue with `JSF Pages from Entity Classes` - Integration Problems with template for 'JSF Pages From Entity Beans' controller class
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
When using the "JSF Pages from Entity Classes" feature in NetBeans 23 with WildFly 24 as the application server, the generated code fails to integrate correctly.
When build code for Application server session bean to generate code like @PersistenceContext private EntityManager em; Instead, it produces the following code @Resource private UserTransaction utx = null; Specifically, the annotations and dependencies for resources like `@Resource` and `@EJB` are not correct properly set, which causes runtime issues.
### Use case/motivation
The generated code should configure the correct CDI bean management according to the application server and correctly configure all required annotations, @PersistenceContext private EntityManager em; `@EJB` for session beans, For Session Beans, it does not allow integrated transaction management in WildFly 24.
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the JSF Pages from Entity Classes generation in NetBeans 23 with WildFly 24, focusing on the generated session-bean controller and its resource annotations. Compare the generated @Resource and @EJB dependencies with the requested @PersistenceContext EntityManager setup and verify the result at runtime; done means the generated code integrates correctly with WildFly transaction management.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100