This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Create new Web Application Create new JSF config Create new JSF Managed Bean and register it in faces-config (enable checkbox in wizard) in index.xhtml invoke cc in EL: '#{|}' the JSF bean is not provided
The workaround is to use javax.faces.bean.ManagedBean annotation instead of faces-config.xml
Looks like the merged model issue. David is the expert on it...
Reproducible, must be fixed for 6.9.
The issue happens only if an instance of jsf metamodel is created (for example when the EL code completion in an xhtml file is called) and later a faces-config.xml is added. If you start netbeans or open a project with a faces-config.xml, everything works fine. Caused by JsfModelFactory.getModel( WebModule module ) caching the model instances per webmodule. When a new model is created for the first time for a webmodule a new instance of ModelUnit is passed into it. However the ModelUnit searches the the faces-config.xml file only during its creation so once the model instance is created for the webmodule without faces config, the model never uses the data from faces-config.xml even if created later. Netbeans restart or maybe reopening the project helps. This is IMO a low priority issue, I'll try to fix anyway.
OK, there is some support for listening on faces configs changes but there were issues - the whole related code in JsfModelImpl and ModelUnit is messy so I spent great deal of time trying to understand what will/was supposed to happen if ... . Someone please review the fix, there is no guarantee of the fix to be regressions less. I tried basic scenarios, but would be worth testing a bit. web-main#8f42ea1df5c2
Integrated into 'main-golden', will be available in build *201002180200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8f42ea1df5c2 User: Marek Fukala <mfukala@netbeans.org> Log: #180468 - [cc] JSF managed bean registered in faces-config.xml are not provided by cc
verified. NetBeans IDE Dev (Build 201002230200)