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 236922 - It does not suggest the fields when the component is used in the composite.
Summary: It does not suggest the fields when the component is used in the composite.
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-09 08:39 UTC by wklaczynski
Modified: 2014-01-17 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (200.52 KB, text/plain)
2013-10-09 08:39 UTC, wklaczynski
Details
testing project (20.56 KB, application/zip)
2013-10-18 07:38 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wklaczynski 2013-10-09 08:39:21 UTC
Product Version = NetBeans IDE 7.4 RC2 (Build 201309252201)
Operating System = Linux version 3.8.0-31-generic running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

If I use the composite component type declaration:
<cc:interface componentType="org.main.UIContentPanel">

I will build an implementation component:
@FacesComponent("org.main.UIContentPanel")
public class UIContentPanel extends UINamingContainer {
    private String caption;
    public String getCaption(){
       return caption;
    }
}   

It does not suggest the fields defined by typing "cc" in the implementation of the composite.
Comment 1 wklaczynski 2013-10-09 08:39:25 UTC
Created attachment 140929 [details]
IDE log
Comment 2 Martin Fousek 2013-10-18 07:38:26 UTC
Thanks a lot for the report. You are right, it's not supported yet. Actually the second worse problem is complaining about the "Unknown property" on the 'caption' field inside the facelet.
Comment 3 Martin Fousek 2013-10-18 07:38:59 UTC
Created attachment 141238 [details]
testing project

testing project
Comment 4 Martin Fousek 2014-01-17 09:51:36 UTC
It looks pretty tough, but I'll try to fix that.
Comment 5 Martin Fousek 2014-01-17 13:25:53 UTC
That needed pretty big change, but completion works at least after the 'cc' now and the fields aren't marked as unknown at all (after the cc.caption or similarly).

web-main #0e85a81f49e7