MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mn4891
Post subject: Tiles newb question  PostPosted: Mar 22, 2010 - 07:22 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Tiles newb question  PostPosted: Mar 23, 2010 - 07:28 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

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

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
mn4891
Post subject: Not frames but tiles  PostPosted: Mar 23, 2010 - 03:24 PM
Registered Member
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>
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Not frames but tiles  PostPosted: Mar 24, 2010 - 06:41 AM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
mn4891
Post subject: RE: Not frames but tiles  PostPosted: Mar 25, 2010 - 10:53 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: Not frames but tiles  PostPosted: Mar 26, 2010 - 04:12 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

Mike,

Good to hear you are all set.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits