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 232274 - [74cat] Non-existing attributes are not considered as errors
Summary: [74cat] Non-existing attributes are not considered as errors
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 13:55 UTC by misterm
Modified: 2013-08-17 02:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the new behavior (125.23 KB, image/png)
2013-08-16 11:46 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-07-04 13:55:51 UTC
In a facelets component definition xhtml, usages of #{cc.attrs.something} should be marked as errors if something is not an attribute of the interface. Since code completion of attributes is already provided, this should be done as well.

Product Version = NetBeans IDE Dev (Build 20130703-4ccc4c622a55)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Comment 1 Martin Fousek 2013-07-09 06:28:23 UTC
Thanks for the report.

I'm afraid that marking that always as error could be sometimes incorrect since the interface tag can be optional meta-information (at least since JSF 2.2) of the composite component. On the other hand the hint could be ignored in such cases.
Comment 2 Martin Fousek 2013-08-16 11:45:34 UTC
Ok, it looks that it's validating properly now. You can give it chance in development builds after 2-3 days. All invalid attributes are marked with hint as unknown property now.

Fixed in web-main #53b38976d014.
Comment 3 Martin Fousek 2013-08-16 11:46:05 UTC
Created attachment 138784 [details]
screenshot of the new behavior

I'm attaching screenshot of the new behavior.
Comment 4 Quality Engineering 2013-08-17 02:21:57 UTC
Integrated into 'main-silver', will be available in build *201308162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53b38976d014
User: Martin Fousek <marfous@netbeans.org>
Log: #232274 - [74cat] Non-existing attributes are not considered as errors