| Summary: | CS: Helios JSF2 faces-config.xml wizard does not pick up non-XML @ManagedBean annotated classes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael OBrien <michael.f.obrien> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | douglas.clarke | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | product category and reproduction pending | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 337037 | ||||||
| Attachments: |
|
||||||
|
Description
Michael OBrien
>Problem: we wish to use mostly annotations for JSF 2.0 like @ManagedBean The issue is that we are no longer able to use the Eclipse 3.6 Helios JSF wizard that comes with the faces-config.xml file. >of secondary note - is the fact that the wizard adds a second config instead of replacing the commented original - I agree with this behavior as we should not be removing commented code when regenerating the faces-config.xml <managed-bean> <managed-bean-name>collatzBean</managed-bean-name> <managed-bean-class>org.eclipse.persistence.example.distributed.collatz.presentation.CollatzManager</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> <!-- manage the managed-bean via annotations --> <!-- managed-bean> <managed-bean-name>collatzBean<managed-bean-name> <managed-bean-class>org.eclipse.persistence.example.distributed.collatz.presentation.CollatzManager</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean--> Environment 32-bit Helios 3.6 on WebLogic 10.3.4.0 using the default "glassfish" JSF 2.0 implementation that ships with WebLogic. Feb 22, 2011 4:06:03 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Mojarra 2.0.4 (FCS b05) for context '/collatz' >I use the following annotations to mark a POJO as a managed/backing bean for JSF 2.0 instead @ManagedBean(name="collatzBean") @SessionScoped public class CollatzManager { @EJB(name="ejb/CollatzFacade") private CollatzFacadeLocal collatzFacade; ... >WebLogic warns about an existing managed-bean configuration without failing It either replaces the annotated bean config with the XML defined one - need to verify which order The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |