- This topic has 9 replies, 4 voices, and was last updated 21 years, 6 months ago by
support-michael.
-
AuthorPosts
-
Riyad KallaMemberThis one is a quickie:
Inside of scriplets:
<%
%>autocomplete and all functionality works fine, however inside of simple insert scriplets:
<%= %>all of the autocomplete functionality or context sensativity is dead. Are the rest of you seeing this too? I know, i shouldn’t be using scriplets 😀
December 13, 2003 at 9:41 pm #200860
Scott AndersonParticipantI just gave this a try with the following results. The first code assist request inside a normal scriptlet took several seconds to display while all my taglibs were parsed, etc. However, it displayed correctly. After that, I tried a simple insert scriptlet here: <%= |%> and my list of completions was all the ‘this’ context of the JSP page (request and the like). I then tried <%=Str|%> and was given proper java content assist so I was unable to replicate what you’re seeing.
However, be advised that content assist can only function if the file is well-formed. If you have syntax errors above the area where you’re requesting assistance, content assist probably won’t work.
–Scott
MyEclipse SupportDecember 13, 2003 at 10:42 pm #200870
Riyad KallaMemberHmmm, it was a well formed file, but I can’t seem to get it to cough up any completes for me…
What happens if you open a page, and immediately add a <%= |
and try some autocompletting? Does it work? Admitedly I don’t have any <%%> scriplets in my pages, just the insertion ones…
December 14, 2003 at 10:53 am #200878
Scott AndersonParticipantWhat happens if you open a page, and immediately add a <%= |
In my particular case, there is a delay while all the taglibs are parsed, then code complete works. After you ask for a completion, can you move around the file, or is the JSP editor busy parsing in the background? If you leave the file open for a minute and come back to it, does completion work?
–Scott
MyEclipse SupportDecember 14, 2003 at 11:46 am #200881
Riyad KallaMemberOk there is a slight delay (5 seconds or so) before the disk activity stops and all the taglibs color correctly. I get complete just fine with the taglibs themselves and so forth, but just in case, I left the file open for another minute and switched around to some other things and came back. Here’s a snapshot of my file:
<%@ page import="org.econport.ExperimentConstants" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %> <table border="0" cellpadding="10" cellspacing="0" class="PageContent" width="100%"> <tr class="PageContentParagraphBG"> <td> <logic:empty name="<%= ExperimentConstants.DTO_INPUT_GROUP_LIST %>"> <font class="Error"> You must create atleast 1 input group in order to store inputs in it. Please click the button below to create your first input group. </font> </logic:empty> <logic:empty name="<%= Ex| <-- CURSOR HERE
Note where the cursor is, so lets assume I’m trying to autocomplete the ExperimentConstants class just like the logic:empty tag above it, it won’t autocomplete. Even if I close the tag (well formed) nothing happens, I just get the windows error bong (not the sharp beep, but the bong sound like when you try and type into a file that is write protected with textpad).
Even if I try and autocomplete by fully qualifying the name (assuming it won’t parse my imports) that doesn’t work either, just bong bong bong.
Any ideas? Did I make ME angry? 🙂
December 14, 2003 at 2:21 pm #200883
Riyad KallaMemberAhhh! I did more research and it seems the autocomplete is NOT avilable when using a scriplet to set values for a TAGLIB, with normal tags they work fine… but if I do something like I showed in my above example (trying to use a scriplet to set the value of the logic:empty taglib) it will not work.
Any ideas?
December 15, 2003 at 1:22 am #200899
No OperationMembermy results:
<logic:empty name=”<%= S| %>” />
completion fails<logic:empty name=”<%=S|%>” />
completion works=> spaces seems to be the issue!
NOP
December 15, 2003 at 8:20 am #200911
Riyad KallaMemberWeird! Hey thanks for finding this out NOP, very subtle.
Scott can you guys put this on your radar for 2.7 possibly?
December 15, 2003 at 10:01 am #200915
Riyad KallaMemberMore info!
This does not work:
<%=|Nor does this:
<%= |BUT, this works:
<%=|%>so the scriplet has to be closed first, and there can be no space THEN it will work. Can we fix this? It *seems* to me you actually just need to dumb down your context parser, its too strict right now 🙂
January 6, 2004 at 10:28 pm #201512
support-michaelKeymasterFixed in MyEclipse 2.7RC2.
-
AuthorPosts