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 194187 - #{request. has "No suggestions" in JSF editor
Summary: #{request. has "No suggestions" in JSF editor
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Expression Language (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks: 212306
  Show dependency tree
 
Reported: 2011-01-10 17:09 UTC by tilman
Modified: 2012-05-10 12:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tilman 2011-01-10 17:09:24 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03

When using facelets and typing #{request. or #{session. I get "No suggestions" after having entered the dot, despite that the following code works fine with JSF:

        <u>request.session.id:</u> "#{request.session.id}"
        <br/>
        <u>request.remoteHost:</u> "#{request.remoteHost}"
        <br/>
        <u>request.remoteAddr:</u> "#{request.remoteAddr}"
        <br/>
        <u>request.servletPath:</u> "#{request.servletPath}"
        <br/>
        <u>request.requestURI:</u> "#{request.requestURI}"
        <br/>
        <u>request.requestURL:</u> "#{request.requestURL}"
        <br/>
        <u>request.method:</u> "#{request.method}"
        <br/>
        <u>session.id:</u> "#{session.id}"
        <br/>
Comment 1 Marek Fukala 2011-01-21 15:00:32 UTC
other problems:

there are pageScope and pageContext objects in the facelets EL completion, but these are purely JSP related.
Comment 2 Marek Fukala 2011-01-21 16:16:09 UTC
fixing these issue requires more extensive changes, it will take some time. There are still some ugly remains of the old EL support, I would like to convert them to the new web.el module.
Comment 3 Marek Fukala 2011-02-15 16:51:15 UTC
the pageScope has been removed from facelets EL completion in web-main#e3e40a4ec521, the pageContext has been removed earlier during the el redesign: web-main#2384224affb6
Comment 4 Marek Fukala 2011-02-15 17:19:04 UTC
I've aligned the facelets implicit objects with the latest jsf 2.1 (20101108) specification in web-main#ad0c30e01af6
Comment 5 Quality Engineering 2011-02-16 11:36:21 UTC
Integrated into 'main-golden', will be available in build *201102160501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ad0c30e01af6
User: Marek Fukala <mfukala@netbeans.org>
Log: #194187 - #{request. has "No suggestions" in JSF editor
Comment 6 tilman 2011-04-22 14:52:20 UTC
I've just installed NB7. A few hours later I got a mail that my issue has been addressed in the new release. However now nothing pops up at all when entering the ".", regardless what bean it is. Something does pop up when I type "#{".

This is only with .xhtml files in JSF projects, there is no such problem with JSP files in JSP projects.

Either there's a setting that I am missing, or something went really wrong in building the NB7 package. In the option dialog, "editor" - "code completion" is enabled, and so are "hints" for the expression language.

(Should I open a new bug?)