| Author |
Message |
|
|
Post subject: Tiles newb question
Posted: Mar 22, 2010 - 07:22 PM
|
|
Registered Member

Joined: Jul 29, 2008
Posts: 8
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Tiles newb question
Posted: Mar 23, 2010 - 07:28 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3442
|
|
|
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Not frames but tiles
Posted: Mar 23, 2010 - 03:24 PM
|
|
Registered Member

Joined: Jul 29, 2008
Posts: 8
|
|
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> |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Not frames but tiles
Posted: Mar 24, 2010 - 06:41 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3442
|
|
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. |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Not frames but tiles
Posted: Mar 25, 2010 - 10:53 PM
|
|
Registered Member

Joined: Jul 29, 2008
Posts: 8
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Not frames but tiles
Posted: Mar 26, 2010 - 04:12 AM
|
|
Registered Member


Joined: Feb 03, 2009
Posts: 3442
|
|
Mike,
Good to hear you are all set. |
_________________ Joy
MyEclipse Support
|
| |
|
|
|
 |
|
|