facebook

Eclipse 4.0.1 JSP Designer question

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #238622 Reply

    Mork
    Participant

    Dear Support,

    I tried your newest maintenance release to see if it would resolve the but in 4.0.

    Unfortunately, it didn’t.

    I have a relatively simple JSP page with an HTML Table, several text boxes, a few radio buttons and combo drop downs.

    The problem is that after MyEclipse’s “pruning” (and the incredible amount of time it takes to “manipulate” the JSP page) after I delete two rows of the HTML table, it screws up the page and turns all the combo boxes into edit boxes, fully expanded, and all selected (Ctrl-A)!

    Fortunately, I have backups for these files…

    Because this page is proprietary, I can’t post it here.

    Please let me know how I can help you fix this bug that prevents me from using MyEclipse to its potential.

    Thanks.

    — M

    #238627

    We need more information about this issue:
    1. How do you delete the rows in the table? Are you working in graphical designer or a source editor?
    2. Can you reproduce this problem on the JSP like this:

    <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <title>My JSP ‘MyJsp.jsp’ starting page</title>

    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”cache-control” content=”no-cache”>
    <meta http-equiv=”expires” content=”0″>
    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”This is my page”>

    <!–
    <link rel=”stylesheet” type=”text/css” href=”styles.css”>
    –>
    </head>

    <body>
    <P>

    <TABLE border=”1″ width=”200″>

    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”true”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”false”>5</OPTION>
    </SELECT></TD>
    </TR>
    </TABLE>
    </body>
    </html>
    3. Are the comboboxes turned to edit boxes in the source (i.e. <SELECT> tags are changed to <INPUT>) or their presentation in the graphical designer has changed while the source remains correct?

    #238725

    Mork
    Participant

    OK, here are the answers to your questions:

    1. I am deleting rows in the table by right clicking on them in MyEcilpse’s 4.01 JSP Designer and clicking “Delete”. This is when MyEclipse goes nuts for about 45 seconds “updating” and “Pruning”. When MyEclipse is done and I re-start the JSP page in the browser, I then see Edit boxes fully expanded and fully selected (all choices highlighted).

    2. YES!!! I was able to reproduce the error!!!! <s>

    After creating a “Test.JSP” page using the JSP page you gave me I did the following:

    — Deleted two non-contiguous rows in the 4.0.1. JSP Designer in MyEclipse
    — MyEclips’s JSP Designer goes nuts for a long time updating things and pruning
    — Saved the file.
    — Copied Test.jsp to a test production directory
    — Ran under Tomcat
    — Saw that the combos were now Edit boxes, fully selected and exapnded.

    The resulting code from the JSP Designer is below for your inspection.

    I’m not sure where the problem is, but hopefully now you can fix it for 4.0.2.

    (I can send you a screenshot if you give me an email address to send it to.)

    Please reply and let me know what’s up with this, OK?

    Thanks.

    — M

    =======================================================

    <%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <title>My JSP ‘MyJsp.jsp’ starting page</title>

    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”cache-control” content=”no-cache”>
    <meta http-equiv=”expires” content=”0″>
    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”This is my page”>

    <!–
    <link rel=”stylesheet” type=”text/css” href=”styles.css”>
    –>
    </head>

    <body>
    <P>

    <TABLE border=”1″ width=”200″>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”false”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”true”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”false”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”true”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”false”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”true”>5</OPTION>
    </SELECT></TD>
    </TR>
    <TR>
    <TD>Label:</TD>
    <TD><SELECT name=”combobox1″ multiple=”false”>
    <OPTION value=”1″ selected=”false”>1</OPTION>
    <OPTION value=”2″ selected=”false”>2</OPTION>
    <OPTION value=”3″ selected=”false”>3</OPTION>
    <OPTION value=”4″ selected=”false”>4</OPTION>
    <OPTION value=”5″ selected=”true”>5</OPTION>
    </SELECT></TD>
    </TR>
    </TABLE>
    </body>
    </html>

    #238727

    Mork
    Participant

    Dear Support,

    The example you gave me above doesn’t really show the problem.

    Below is the actual problem reproduced.

    The first <TR> tag is the combo in the table that displays as a combo.

    The second <TR> Tag below is what used to be the combo after deleting two rows (not including the row the combo was in, of course) after MyEclipse 4.0.1 JSP designer goes nuts updating the page for a long time.

    **** CORRECT BELOW -> Displays Combo box as intended
    </tr>
    <tr bgcolor=”#00CCFF”>
    <td><div align=”center”><strong>2</strong></div></td>
    <td height=”50″><div align=”right”><font size=”2″><strong>Please describe your
    experience with us</strong></font></div>
    </td>
    <td><font size=”2″>
    <select name=”cbofamilarityList” id=”cbofamilarityList”>
    <option value=””>
    <option value=”Casual”>Casual
    <option value=”First”>First
    <option value=”Repeat”>Repeat
    <option value=”OT”>Other
    </select>
    comments
    <input name=”txtExperience” type=”text” id=”txtExperience” size=”50″ maxlength=”50″>
    </font></td>
    </tr>

    —————————————————-

    ***** ERROR BELOW! This is what MyEclipse 4.0.1 JSP Designer does to the <TR> tag above. Now this displays as a fully expnded, fully selected LIST box!

    TR bgcolor=”#00ccff”>
    <TD>
    <DIV align=”center”><STRONG>2</STRONG></DIV>
    </TD>
    <TD height=”50″>
    <DIV align=”right”><FONT size=”2″><STRONG>Please describe your
    experience with us</STRONG></FONT></DIV>
    </TD>
    <TD><FONT size=”2″> <SELECT name=”cbofamilarityList”
    id=”cbofamilarityList” multiple=”false”>
    <OPTION value=”” selected=”true”></OPTION>
    <OPTION value=”CA” selected=”false”>Casual</OPTION>
    <OPTION value=”FI” selected=”false”>First</OPTION>
    <OPTION value=”RP” selected=”false”>Repeat</OPTION>
    <OPTION value=”OT” selected=”false”>Other</OPTION>
    </SELECT> comments <INPUT name=”txtExperience” type=”text”
    id=”txtExperience” size=”50″ maxlength=”50″> </FONT></TD>
    </TR>

    Hope you can help get this problem fixed ASAP.

    Thanks again.

    — M

    #238729

    rateoty
    Member

    hi,
    if you need a combo box, you should specify size=”1″ for your <select> tag.
    and it is good style to close the <option> tags with </option> – maybe ME has problems with not closed tags?

    regards Jürgen

    #238733

    Following page does not display a combo in IE. WebDesigner should also render this as a list box. Is that correct?

    <html>
    <body>
    <table>
    <tr bgcolor=”#00ccff”>
    <td>
    <div align=”center”><strong>2</strong></div>
    </td>
    <td height=”50″>
    <div align=”right”><font size=”2″><strong>Please describe your
    experience with us</strong></font></div>
    </td>
    <td><font size=”2″> <select name=”cbofamilarityList”
    id=”cbofamilarityList” multiple=”false”>
    <option value=”” selected=”true”>
    <option value=”Casual” selected=”false”>Casual
    <option value=”First” selected=”false”>First
    <option value=”Repeat” selected=”false”>Repeat
    <option value=”OT” selected=”false”>Other
    </select> comments <input name=”txtExperience” type=”text”
    id=”txtExperience” size=”50″ maxlength=”50″> </font></td>
    </tr>
    </table>
    </body>
    </html>

    #238734

    Mork
    Participant

    Hi Eugene,

    I’m sorry I haven’t been clear.

    Here’s the situation…

    I start with combos in a table created using Dreamweaver.

    After deleting two rows of the table, using the MyEclipse 4.0.1 JSP Editor (the new feature) the combos turn into List/Edit boxes fully extended and fully selected (CTRL-A) when the page is viewed.

    — M

    #238751

    Scott Anderson
    Participant

    M,

    Can you post a small but complete HTML example page that we shows the problem when the rows are deleted? That will allow us to be sure we get the bug report submitted correctly and address exactly the issue you’re reporting.

    And, for anyone that’s seeing this or something similar, the workaround to this issue is simply to delete the rows using the source side of the design/source editor, rather than the design side.

    #238765

    Mork
    Participant

    Hi Scott,

    Because of confidentiality restrictions, I can’t post the code here, but I might be able to email it to you once I get approval from the client.

    Please let me know if that would work for you and what email address to use.

    Thanks.

    — M

    #238787

    Scott Anderson
    Participant

    M,

    From what you said earlier:

    I start with combos in a table created using Dreamweaver.

    I thought that you had a small example of any file generated with a particular configuration from Dreamweaver. Is that not the case? It doesn’t have to be the exact file with client data or anything, just anything that we can use to test against.

    If email works better, you can send it to support@genuitec.com. But, please be sure to include the URL to this thread so we’ll know what we received. 🙂 Thanks again for the help in isolating this.

    #238811

    Mork
    Participant

    Hi Scott,

    I did post the part of the JSP file before and after deleting the rows in the JSP designer.

    It will take me a few days to get approval to send you the particular JSP file.

    In the meantime, maybe your developers can quickly reproduce the problem.

    It’s just a table with a mix of radio buttons, combos and text fields.

    — M

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Eclipse 4.0.1 JSP Designer question

You must be logged in to post in the forum log in