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 179625 - names of CDI beans are incorrect in cc
Summary: names of CDI beans are incorrect in cc
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Marek Fukala
URL: http://docs.sun.com/app/docs/doc/820-...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-18 07:46 UTC by Jindrich Sedek
Modified: 2010-02-02 06:27 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 2010-01-18 07:46:48 UTC
See the URL attached to the issue. There is a value attribute of @Named annotation that specifies the name of injected bean, but JSP/JSF cc doesn't respect it.

@Named(value="MyBean")
public class MyBeanClass{...}

still offers MyBeanClass in cc

If the value attribute is not set the bean name should be the class name with first letter in lowercase and thus

@Named()
public class MyBeanClass{...}

cc should provide 'myBeanClass', but it provides 'MyBeanClass' that is not correct
Comment 1 Jindrich Sedek 2010-01-18 07:54:52 UTC
oups, I just noticed additional fix to the issue 56083e99ed95; it works well in web-main now...
Comment 2 Jindrich Sedek 2010-02-02 06:27:16 UTC
v.