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 178126 - keywords should not be offered as JSF properties in EL
Summary: keywords should not be offered as JSF properties in EL
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-04 03:12 UTC by Jindrich Sedek
Modified: 2012-05-30 05:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2009-12-04 03:12:53 UTC
create a ManagedBean Foo:
-----------------
@ManagedBean(name = "Foo")
@RequestScoped
public class Foo {

    protected List<String> friends;

    public List<String> getFriends() {
        return friends;
    }

    public void setFriends(List<String> friends) {
        this.friends = friends;
    }
}
------------------
use EL in XHTML and invoke cc at position of "|" -> 'empty' is offered:
${Foo.friends.|}
complete code -> you get ${Foo.friends.empty}
     note that 'empty' gets coloring as EL keyword;
running the application causes error shown in browser:
---------------------
An Error Occurred:
/index.xhtml @12,39 test="${Foo.friends.empty}" Error Parsing: ${Foo.friends.empty}
---------------------

We should not offer keywords as properties in cc and it would be also good candidate for an error message shown in editor if a keyword is used as a property
Comment 1 PetrPodzimek 2012-05-29 10:53:10 UTC
web-main: a9c73c5c0876

EL keywords removed from Code Completion menu.
Comment 2 PetrPodzimek 2012-05-29 11:58:33 UTC
web-main: 37a3b4a9fa95
Comment 3 PetrPodzimek 2012-05-29 11:58:33 UTC
web-main: 37a3b4a9fa95
Comment 4 Quality Engineering 2012-05-30 05:29:05 UTC
Integrated into 'main-golden', will be available in build *201205300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a9c73c5c0876
User: Petr Podzimek <PetrPodzimek@netbeans.org>
Log: #178126 - keywords should not be offered as JSF properties in EL
Issue #178126 - keywords should not be offered as JSF properties in EL