Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337035 - CS: Helios JSF2 faces-config.xml wizard does not pick up non-XML @ManagedBean annotated classes
Summary: CS: Helios JSF2 faces-config.xml wizard does not pick up non-XML @ManagedBean...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard: product category and reproduction pen...
Keywords:
Depends on:
Blocks: 337037
  Show dependency tree
 
Reported: 2011-02-12 11:53 EST by Michael OBrien CLA
Modified: 2022-06-09 10:24 EDT (History)
1 user (show)

See Also:


Attachments
https://fisheye2.atlassian.com/changelog/eclipselink?cs=9011 (4.43 KB, patch)
2011-02-22 16:16 EST, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2011-02-12 11:53:59 EST

    
Comment 1 Michael OBrien CLA 2011-02-22 16:07:26 EST
>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
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:24:26 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink