You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by SiSi'mon <s_...@purpleblade.net> on 2007/05/24 00:37:02 UTC

Useing a JSF template

We have a set of JSF code snippets that is setup to define a header, a
template body and a footer but there seems to be a problem with it.  I
inherited the code and am trying to take a look at things.

The examples I find do not seem to provide much information.  Does anyone
have an example of how to do this?

Basically when we build an actual page that is displayed to the user we want
to include
  1.  a header
  2.  a footer
  3.  Apply a template (that is filled in with the actual page that is
requested

so:

    CarInfo.xhtml

would include only 1 file:    Template.xhtml

Template.xhtml would be short to include 3 files
  1.  TemplateHeader.xhtml
  2.  TemplateBodyWithMenu.xhtml
  3.  TemplateFooter.xhtml

What we have works - sorta - my ide is complaining about opening closeing
tags when validated against a dtd but I am using what was provided in some
of the examples I found.

If anyone has a working implementation, please forward.

thanks for your help

-- 
View this message in context: http://www.nabble.com/Useing-a-JSF-template-tf3806986.html#a10774299
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Useing a JSF template

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,

http://code.google.com/p/facesgoodies/

that is a project, that *tries* to provide you "cool" JSF technologies
(incl. facelets and its templating)

-M

On 5/23/07, SiSi'mon <s_...@purpleblade.net> wrote:
>
> We have a set of JSF code snippets that is setup to define a header, a
> template body and a footer but there seems to be a problem with it.  I
> inherited the code and am trying to take a look at things.
>
> The examples I find do not seem to provide much information.  Does anyone
> have an example of how to do this?
>
> Basically when we build an actual page that is displayed to the user we want
> to include
>   1.  a header
>   2.  a footer
>   3.  Apply a template (that is filled in with the actual page that is
> requested
>
> so:
>
>     CarInfo.xhtml
>
> would include only 1 file:    Template.xhtml
>
> Template.xhtml would be short to include 3 files
>   1.  TemplateHeader.xhtml
>   2.  TemplateBodyWithMenu.xhtml
>   3.  TemplateFooter.xhtml
>
> What we have works - sorta - my ide is complaining about opening closeing
> tags when validated against a dtd but I am using what was provided in some
> of the examples I found.
>
> If anyone has a working implementation, please forward.
>
> thanks for your help
>
> --
> View this message in context: http://www.nabble.com/Useing-a-JSF-template-tf3806986.html#a10774299
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Re: Useing a JSF template

Posted by Andrew Robinson <an...@gmail.com>.
xhtml templates are a facelets technology, you should post this
question on the facelets user mailing list

as for opening/closing tags, each xhtml file should be a valid XML
file. Looking at the facelets examples should help.

On 5/23/07, SiSi'mon <s_...@purpleblade.net> wrote:
>
> We have a set of JSF code snippets that is setup to define a header, a
> template body and a footer but there seems to be a problem with it.  I
> inherited the code and am trying to take a look at things.
>
> The examples I find do not seem to provide much information.  Does anyone
> have an example of how to do this?
>
> Basically when we build an actual page that is displayed to the user we want
> to include
>   1.  a header
>   2.  a footer
>   3.  Apply a template (that is filled in with the actual page that is
> requested
>
> so:
>
>     CarInfo.xhtml
>
> would include only 1 file:    Template.xhtml
>
> Template.xhtml would be short to include 3 files
>   1.  TemplateHeader.xhtml
>   2.  TemplateBodyWithMenu.xhtml
>   3.  TemplateFooter.xhtml
>
> What we have works - sorta - my ide is complaining about opening closeing
> tags when validated against a dtd but I am using what was provided in some
> of the examples I found.
>
> If anyone has a working implementation, please forward.
>
> thanks for your help
>
> --
> View this message in context: http://www.nabble.com/Useing-a-JSF-template-tf3806986.html#a10774299
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>