Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Template

 
Venkata Saraswathi
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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]

Thanks,
--Venkata.
 
VijayAnand Venkateswaran
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
http://www.ibm.com/developerworks/java/library/j-facelets/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic