| Summary: | [content assist] Extra < in JSP content assist | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | David Klein <kleind> |
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> |
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | minor | ||
| Priority: | P3 | CC: | david_williams, itewksbu, mauromol, nsand.dev, rpastran |
| Version: | 2.0 | Keywords: | helpwanted |
| Target Milestone: | 3.4.2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
David Klein
With just the '<' present, it looks like improper filtering of proposals for the tag name. Once a character has been typed, something else is going on. Marking it for Future as we don't have time to work on it right now, but will see if we can find time later in the schedule. (In reply to comment #1) > With just the '<' present, it looks like improper filtering of proposals for > the tag name. Once a character has been typed, something else is going on. > Marking it for Future as we don't have time to work on it right now, but will > see if we can find time later in the schedule. Hi, can we have an update on this bug? Has it made it into the schedule? Thanks. Since it was marked as "helpwanted", that's a good indication that the current core team would look at a patch, if someone provided one, but otherwise wouldn't have time. Thanks, David. It is as he says. This is still present in 3.2 This is happening because unlike other content assist proposal, JSP Expression comes from JSP template. So if we type "JSP" or any substring from JSP template name ,and hit the content assist and select the JSP Expression proposal. It will correctly replace "JSP" to <%= > This happens for all templates. I guess this is works as designed. Currently templates are case sensitive. I have created bug 328110. Sarika is correct that since < is not part of the name, it wil not be replaced by the template. This is how the template proposals work. IMHO this is not enough to close this bug. The JSP expression proposal is in the list of the "default" proposals, together with the HTML proposals. In other words, if you type: < and invoke code completion, you are suggested: <a> <abbr> [...] JSP expression (<%=..>) All the proposals work fine, except for the JSP expression one. Why doesn't the JSP expression work like the others? If the problem is that the name of the suggested proposal is "JSP expression" and not "<%=", then you should either: 1. change the name of the proposal or 2. remove the JSP expression from the proposals, since you started typing a character which is not the start of the name of the proposal Since I think 2. is not a so smart solution, why not changing the proposal name to "<%="? Hi Mauro, Thanks for your feedback. So I ended up reworking our JSPTemplateCompletionProcessor so that it will check and see if it can consume the previous bit of text due to it opening a JSP expression tag. The changes have been pushed to get git repository. Thanks to you Nick! |