File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF Template Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Template" Watch "JSF Template" New topic

JSF Template

Venkata Saraswathi
Ranch Hand

Joined: Sep 27, 2008
Posts: 55

I have xhtml page which uses the template which contains regions like, header, title, menu, body, footer.
Now, In the menu region there are set of links. Upon clicking on link the content in the body region should be updated accordingly.
Can any body provide sample code to acheive this. [how to commucate b/w different regions of template]

VijayAnand Venkateswaran

Joined: Aug 04, 2008
Posts: 13
First Of all create a layout like this, For my scenario I have Header,LeftPanel,content,Footer.This should be your Base.

This is test settings.xhtml which

Now I had defined ui:compostition layout.xhtml as my base template, but for testsettings.xhml,The Content part should only be changed.Hope This Should Provide an Idea.
Please follow the Below Link,Where you can Download Example Implemetaion Also

Ship Is Safe at Shore,But its not Built For That
It is sorta covered in the JavaRanch Style Guide.
subject: JSF Template
jQuery in Action, 3rd edition