Jump to content

JSF - How to create Consistent Layout / Masterpage ?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
PunkDudez

PunkDudez

    Newbie

  • Members
  • PipPip
  • 10 posts
Hi

I am working on a project at the moment which involves making a JAVA web application with spring. Currently I am busy with some Front End taskes like putting up the first pages. Supporting mutlilanguages, Including registration/login featuresn etc...

The situation
I noticed that for a consistent layout I had to copy paste all text/tags from my home.jsp to about.jsp, news.jsp etc for example. When I add a link, I also have to add the link in the menu on every page.

The question
How can I implement something like a MASTERPAGE (same as in ASP.NET). Creating one page, which has a a content area, where I can display all content from another page. Is there a framework or principle ( if possible (not required), with spring ? ) which can provide this.

Before you answer
I am not planning to make a solid CMS system. Every page could contain javascript, ajax and other front end technologies. I just want to have a consistent layout without copy/paste to much...

The answer
I'll let this open for you people :c-lol:

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
Here it is: Facelets tutorial. Using templates.

#3
PunkDudez

PunkDudez

    Newbie

  • Members
  • PipPip
  • 10 posts
Thanks for the help




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users