|
|
|
|
Re: Context Assistant on JSP Expression Language dot operators [message #523396 is a reply to message #523356] |
Fri, 26 March 2010 06:11   |
Eclipse User |
|
|
|
Sarika Sinha wrote on Fri, 26 March 2010 02:24 | We do have limitation in EL content assist support in WTP 3.2 as well. Content assist on dot operator never works for pageContext like this: ${pageContext. }
| That is the one case that does work in WTP 3.2, or at least it should be. There are JUnits that specifically test for that.
Wil wrote on Fri, 26 March 2010 04:11 | Thnx.
What will work? Could you show me some examples?
Ps. In netbeans it works on dot operators, a great benifit while programming JSP with expression language, will this be introduced later?
| The example that should work in WTP 3.2 is ${pageContext.}, or really any dot operator on a variable. What does not work is variable completion.
Again I am not positive what was and was not working in WTP 3.1, but I do know EL support especially in content assist has been improved for WTP 3.2.
While it would be great to support it like a first class citizen like the JSP scriplet regions there are lots of issues with supporting EL especially because of translation and scoping issues. Also there are many more higher priority issues the core Structured Source Editor is working on. If there are any other specific issues with EL support you believe should be fixed you can find an existing bug for it in Bugzilla and vote on it, or if you are feeling very ambitious the team is always willing to review high quality patches from the community. I know there are already a hand full of Bugzillas open in this area, and I would mention the bug numbers here bug Bugzilla currently seems to be down for me.
If you have any further questions please feel free to ask.
Blue Skies,
~Ian
[Updated on: Fri, 26 March 2010 06:11] by Moderator
|
|
|
|
Re: Context Assistant on JSP Expression Language dot operators [message #523554 is a reply to message #523552] |
Fri, 26 March 2010 15:36   |
Eclipse User |
|
|
|
Wil wrote on Fri, 26 March 2010 15:20 |
I've downloaded build 20100318-1801 with the Eclipse Web Developer Tools 3.2.0.v200911160530-.... after creating a Dynamic Web Project, adding a JSP page in /WEB-INF/ and trying to use some of the implicit objects JSP offers you I was unable to succeed using context assistant.
| That driver may not be new enough to have all the EL fixes that have gone into WTP 3.2. If you want to try the latest and greatest you can get our M6 driver from http://download.eclipse.org/webtools/downloads/.
Wil wrote on Fri, 26 March 2010 15:20 | pageContext [${pageContext}]
pageScope [${pageScope}]
requestScope [${requestScope}]
sessionScope [${sessionScope}]
param [${param}]
paramValues [${paramValues}]
header [${header}]
headerValues [${headerValues}]
cookie [${cookie}]
initParam [${initParam}]
But on none of them using any dot operator, or even by just typing ${ }, I'm able to get any tips from the context assistant. 'No default proposals' I keep getting.
| Not sure what you are saying here.
Wil wrote on Fri, 26 March 2010 15:20 | Am I using it according to a way you would expect it to work now?
| Steps that you would need to follow are:
- Create new DWP pointing at a server runtime such as Apache 6.0
- Create a JSP in the new DWP
- Add the line ${pageContext. } and invoke content assist after the dot
Let me know if you have any luck. Again this MAY work on the driver you have, but I do not remember when the relevant fixes went in. Possible before then so its worth giving a try on your current driver if you are doing something different then in my provided steps.
Blue Skies,
~Ian
[Updated on: Fri, 26 March 2010 15:37] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05988 seconds