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 225813

Summary: JSF Editor unaware of cc:attribute type="blah,blah,blah"
Product: javaee Reporter: ethermion
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal CC: marfous
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: test case (nb project)

Description ethermion 2013-02-06 19:47:52 UTC
Created attachment 131071 [details]
test case (nb project)

<cc:interface>
    <cc:attribute name="bean" type="com.example.SomeBean" required="true"/>
</cc:interface>

<cc:implementation>
    <h:outputText value="#{cc.attrs.bean.NO-CODE-COMPLETION-HERE}" />
...

1)
#{cc.attrs.bean.^SPACE does not do code completion (content assist), even though the class can be inferred from the type assignment on the attribute.

2) Once that is fixed, bad EL could be flagged just as in a regular facelet.

3)
Content assist (and error check) on the type field itself would also be nice too.
e.g. type="com.example.^SPACE

Test case NB project attached.
Comment 1 Martin Fousek 2013-02-07 06:20:42 UTC
That are definitely good points for implementing. Changing category to the correct one and switching to enhancement. Thanks ethermion for reporting.
Comment 2 Martin Fousek 2013-08-05 05:25:45 UTC
BTW, points Nr. 1 and 2 should be already implemented into the NetBeans 7.4.
Comment 3 Martin Fousek 2013-11-12 15:41:21 UTC
The last feature, code completion of java elements in the "type" attribute is implemented in web-main #5a0bd8520586.

Reporter please give it a try in the daily build and let us know any issues you would be facing. Thanks
Comment 4 Quality Engineering 2013-11-13 03:07:17 UTC
Integrated into 'main-silver', will be available in build *201311130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5a0bd8520586
User: Martin Fousek <marfous@netbeans.org>
Log: #225813 - JSF Editor unaware of cc:attribute type="blah,blah,blah"