• 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

JSF Template

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic