I had a managed bean called controlBean and i deleted it. Then i tried to add a new bean with the same name. I also had deleted it from faces-config.xml file, which was looking like this:
<managed-bean>
<managed-bean-name>controlBean</managed-bean-name>
<managed-bean-class>com.app.managedbeans.ControlBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
The problem is, even though i specify its name as controlBean again, NetBeans calls it controlBean1, and if i delete and add again it is called controlBean2 etc. Does anyone know the reason? What can i see to fix it?
Thanks