facebook

Tiles newb question

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #306915 Reply

    mike nastav
    Participant

    I am a tiles n00b and this is probably a real stupid question. I am working on a new project on myeclipse 6 (and 7). I load the initial layout with 3 tiles (body, header and menu) successfully. When I select one of the buttons from the menu and try to get it to load the new body tile it loads it into a new I.E. window/session. The button use this code:
    HREF=”createTicket.do”>
    I am hitting the createTicket action class ok and the desired JSP does load ok it just loads in a new window rather than in the target body. Any idea what rookie mistake I am making?

    Thanx for any help,
    -Mike

    #306922 Reply

    support-joy
    Member

    Mike,

    Not sure what is the issue you are facing. Are you referring to an anchor tag, whose onclick event opens a new window? If yes, please check the target attribute. Please refer http://www.developingwebs.net/html/targetattribute.php

    #306933 Reply

    mike nastav
    Participant

    Joy:
    I think the anchor and target stuff is for frames. I thought with tiles we did not need frames and that with tiles the screen layout was determined on the server side so the problem with different browsers interpreting he frames data differently was not an issue. Here is what i am trying to do. Here is my layout. I am trying to assign a new jsp to the “body” portion of this layout:

    <form method=”post” >
    <table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”95%” align=”center”
    bordercolor=”#000000″ bgcolor=”lightsteelblue”>
    <tr>
    <td width=”100%” colspan=”3″ valign=”top” align=”center” height=”15%”>
    <div id=”header”> <tiles:insert attribute=”header” /></div>
    </td>
    </tr>
    <tr>
    <td valign=”top” align=”left” id=”menu” >
    <tiles:insert attribute=”menu” />
    </td>
    <td valign=”top” align=”left”>

    <tiles:insert attribute=”body” />
    </td>
    <td valign=”top” align=”left”>

    </td>
    </tr>
    </table>
    </form>

    #306943 Reply

    support-joy
    Member

    Mike,

    The above code looks good. I don’t see any issues. Can you try to run your app in debug mode? This might point you to the exact cause of opening in a new window.

    Best.

    #307009 Reply

    mike nastav
    Participant

    Joy:
    I think I figured it out. You were right in your first assumption. I was assuming that using the “body” insert with tiles would free me from using frames. I think I was wrong. I basically use the above layout but added a iframe with a welcome.jsp I names the iframe “context” and then use “context” as my target for my buttons on the menu. Thanx for your help. Tiles is pretty odd thing to learn!
    -MN

    #307013 Reply

    support-joy
    Member

    Mike,

    Good to hear you are all set.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Tiles newb question

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