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 249438 - @Named on a class with two uppercase letters resolved to a wrong el expression in jsf editor
Summary: @Named on a class with two uppercase letters resolved to a wrong el expressio...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-18 19:14 UTC by opensolutions
Modified: 2015-07-04 02:08 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 opensolutions 2014-12-18 19:14:32 UTC
On a class like this:

@Named
public class ICtest

The code completion in netbeans jsf editor view will show you

#{iCtest}

but it has to be

#{ICtest}

upper case IC

why:

...to support the occasional use of all upper-case names, we check if the first two characters of the name are both upper case and if so leave it alone. So for example, “FooBah” becomes “fooBah” “Z” becomes “z” “URL” becomes “URL” We provide a method Introspector.decapitalize which implements this conversion rule.

http://stackoverflow.com/questions/19414709/cant-find-named-cdi-bean-with-default-name-in-el-facelet
Comment 1 Petr Hejl 2015-07-03 12:59:56 UTC
Fixed in web-main 79322105a333.
Comment 2 Quality Engineering 2015-07-04 02:08:59 UTC
Integrated into 'main-silver', will be available in build *201507040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/79322105a333
User: Petr Hejl <phejl@netbeans.org>
Log: #249438 - @Named on a class with two uppercase letters resolved to a wrong el expression in jsf editor