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.

Bug 249474

Summary: Spurious 'Unknown property' warning when using producer methods
Product: javaee Reporter: RayDeCampo
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Project exhibiting the bug

Description RayDeCampo 2014-12-20 23:54:08 UTC
Created attachment 151227 [details]
Project exhibiting the bug

When I use a producer method annotated with @Producer in a bean FooController which returns type Foo, the JSF facelets editor seems to think the result of the method is a FooController and reports spurious "unknown property" warnings when drilling into the Foo bean.

To reproduce, use the attached project.  The producer methods are set up in FooController.  The warnings occur in index.xhtml.  Note that when first entering the reference to the newFoo or otherFoo produced beans the editor knows they are of type Foo when using Alt-Enter to complete then.  But when drilling into the properties of newFoo or otherFoo with Alt-Enter the editor behaves as if they are of type FooController.  Also the editor warns about the proper use of the newFoo.bar, newFoo.baz, otherFoo.bar and otherFoo.baz properties.

Expected result:
1) No warnings associated to the newFoo.bar, newFoo.baz, otherFoo.bar and otherFoo.baz properties
2) When typing "newFoo." and then Alt-Enter, the IDE displays the available properties of the Foo class, bar and baz, and NOT the properties of the FooController class.