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 - Spurious 'Unknown property' warning when using producer methods
Summary: Spurious 'Unknown property' warning when using producer methods
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-20 23:54 UTC by RayDeCampo
Modified: 2014-12-20 23:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project exhibiting the bug (2.22 KB, application/gzip)
2014-12-20 23:54 UTC, RayDeCampo
Details

Note You need to log in before you can comment on or make changes to this 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.