jQuery in Action, 3rd edition
The moose likes JSF and the fly likes components and shared rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "components and shared rendering" Watch "components and shared rendering" New topic
Author

components and shared rendering

Renzo Tomaselli
Greenhorn

Joined: Sep 19, 2006
Posts: 4
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

Joined: Jun 25, 2001
Posts: 17145
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
Renzo Tomaselli
Greenhorn

Joined: Sep 19, 2006
Posts: 4
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: components and shared rendering
 
It's not a secret anymore!