• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tiles vs Frames

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
What are the benefits of using struts tiles over HTML frames ? as per my understanding goes, tiles eventually boils down to table having different columns loading different pages at runtime. This means that when the page is reloaded, all parts are refreshed. ie. suppose u have a menu on left side and header on the top that need not change every time page is refreshed. however, with tiles, the static part is always reloaded unnecessarily.
Where as with frames, ur static part can remain same and u can specify which frame to refresh. So the main frame having dynamic part can be refreshed.
So what are the benefits of tiles over frames. I tried searching web. I didn't get any specific article.
Please, clear my concepts about struts tiles, if the above description is wrong.
Thanks and regards,
Rashmi
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Frames Are Evil
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many problems with frames, but the mains ones are as follows:
1) Browsers of different types and versions handle frames differently. From rendering to look and feel, frames behave inconsistently between browsers.
Then there are also differences in the way that each browser's JavaScript interprets frames. It would be difficult to truly have a cross-browser application with frames without have browser-specific code attached.
2) There is the issue of sharing data between requests and the session. You cannot expect the jsp hiding in the frame to be able to get at the data in the session/request at any particular time. There are many race conditions associated between putting data in the request or session, and then attempting to populate or reload framed pages.
While the use of Tiles does mean that the pages in the entirety have to be reloaded, a good modular design will make the frames obsolete. The one thing I miss with frames is the ability to navigate one frame seperately from others, however there are many ways around that, and a good design wouldn't force the use of frames.
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic