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

Summary: Probably wrong JSF EL type evaluation in code-complete
Product: javaee Reporter: Maksim Khramov <mkhramov>
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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