We have a ManagedBean ValueObject (VO) that needs to access a ManagedBean Data Transfer Object (DTO) populated from the same JSF page. We need the VO to access the DTO easily. They are both configured with Spring annotations, so we use the @Inject annotation to inject the DTO into the VO. We cannot use @ManagedProperty in this case, since spring is our dependency injection engine. The VO must have an attribute and getters and setters for the DTO.
After this, we use some logic to conditionally return a navigation String to faces-config.xml
This video is part of a playlist, available here: • Full Stack Enterprise Web Development...
Source code for this project is freely available on GitHub, here: https://github.com/discospiff/JavaFul...