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 237300 - Probably wrong JSF EL type evaluation in code-complete
Summary: Probably wrong JSF EL type evaluation in code-complete
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-18 08:49 UTC by Maksim Khramov
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2013-10-18 08:49:00 UTC
Product Version: NetBeans IDE Dev (Build 201310180001)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01

Steps to reproduce:

I have managed bean with two Date fields (one and two) and single boolean

In xhtml file type JSF EL expression

#{ManagedBean.logical}
place caret after logical, type dot and see code complete for boolean type

Second expression:
#{(ManagedBean.one eq ManagedBean.two)}

Once I type dot after closing ')' and invoke intellisence I see code complete for Date but I expected Boolean one.

At runtime expression outputs as 'true' or 'false' depending of actual field values.
Comment 1 Martin Fousek 2013-10-18 10:52:21 UTC
Sorry, I'm switching this into enhancement. Actually there is type resolution for single types but not for expressions at all. It can be quite complicated in some cases but we still could leverage bundled EL parser and register the managed beans into it and let it resolve the expression. In any case whole such functionality has to be implemented from scratch. Thanks for your report.
Comment 2 Martin Balin 2016-07-07 08:53:57 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss