Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

components and shared rendering

 
Renzo Tomaselli
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I'm quite new in this forum. I'm also concerned with architectural issues about JSF: assume wanting to have a suite of independent components, each one owning jsp, beans, bundles, etc. Then we want using them for assembling a web application. No problems as far as each component renders its own full page. But if a page must host output from several components, then we have troubles. Is that possible at all if component JSPs have been developed independently ? I know about subviews and I read that frames are not adviced to be used with JSF. So how about shared rendering the same page among components ?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try facelets. It's a tile technology that works well with JSF.

However, just for into, JSF components are like Controls in Windows. They are each responsible for their own rendering. The JSP is simply the container within which they rended. Tiling is an intermediate rendering technique that's smaller than a page but contains components.

Components may also contain other components as long as they follow the rules. The whole page structure is hierarchical.
 
Renzo Tomaselli
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. Indeed I'm taking an overall look at servlets. Btw, is there any comparison out there between tiles and servlets ? I guess they overlap somehow in their goals. In short, I want to achieve a final result similar to what we used to get from frames: each component should be given an area to render into, while all such areas make up a global page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic