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 196910 - Composite Components and attribute code completion problem
Summary: Composite Components and attribute code completion problem
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P2 normal with 2 votes (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 198625 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-21 10:13 UTC by Vladimir Riha
Modified: 2011-10-05 06:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (8.57 KB, image/png)
2011-03-21 10:13 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-03-21 10:13:08 UTC
Created attachment 107148 [details]
screenshot

Inside a composite component file, if I define attribute in
<cc:interface>
        <cc:attribute name="helloWorldMsg" required="false"/>
</cc:interface>

and then I want to use it,
<cc:implementation>
 <h1>#{cc.attrs.helloWorldMsg}</h1>
...
The attribute is not offered after attrs.|, it is offered only when I invoke completion after cc.| (which doesn't work, at least for combination of Java6 and GlassFish 3.1
Comment 1 Vladimir Riha 2011-03-21 10:14:50 UTC
Info
Product Version: NetBeans IDE 7.0 RC1 (Build 201103210000)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 2 Marek Fukala 2011-03-22 08:20:58 UTC
nasty regression, thanks for catching! Do you think it should be fixed for 7.0?
Comment 3 Vladimir Riha 2011-03-22 09:36:53 UTC
I'm not sure, I guess it could be, this is quite useful function
Comment 4 Vladimir Riha 2011-03-24 19:23:59 UTC
Hope it is not completely different issue... No when I try to do the same,
invoke code completion  in
#{cc.|
nothing is offered but only the attribute name (i.g. helloWorldMsg) defined above is auto completed.
Comment 5 Vladimir Riha 2011-03-24 19:26:53 UTC
Marek, I found this while testing issue #193228 , but I'm not sure if it's related...

Sorry for missing info
Product Version: NetBeans IDE Dev (Build 201103240400)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; cs_CZ (nb)
Comment 6 Marek Fukala 2011-03-28 09:39:53 UTC
(In reply to comment #5)
> Marek, I found this while testing issue #193228 , but I'm not sure if it's
> related...
> 
No it is not.
Comment 7 Marek Fukala 2011-06-06 14:04:17 UTC
*** Bug 198625 has been marked as a duplicate of this bug. ***
Comment 8 franksu 2011-09-04 11:39:41 UTC
It happened in netbean 7.01, too.
Comment 9 pablopina 2011-10-01 14:19:18 UTC
How come this was reported 6 months ago and it is still open?
Comment 10 pablopina 2011-10-01 14:40:00 UTC
How come this was reported 6 months ago and it is still open?
Comment 11 Marek Fukala 2011-10-03 11:43:10 UTC
fixed in web-main#b9a5a8b9ae6d

I'm sorry it took too long to fix.
Comment 12 pablopina 2011-10-03 14:03:51 UTC
You are a good man Marek ;)
Comment 13 Quality Engineering 2011-10-04 14:08:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b9a5a8b9ae6d
User: Marek Fukala <mfukala@netbeans.org>
Log: #196910 - Composite Components and attribute code completion problem
Comment 14 Vladimir Riha 2011-10-05 06:14:06 UTC
verified


Product Version: NetBeans IDE Dev (Build 201110040601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)