You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sean Schofield <se...@gmail.com> on 2004/12/21 16:16:17 UTC

Another Enhancement: JspTilesViewHandlerImpl

If you're using this class, there seems to be a significant
limitation.  That is that every page that is mapped to your faces
servlet (ie. those with *.faces) must be inside a tile definition.  It
is impossible to call the faces page directly without embedding it in
a tile.

If you're using tiles to begin with, its true that a good 90-95% of
your pages will be in a tiles definition.  There are instances,
however, when I access a page directly without a layout.  Its
impossible to do this if the page you want uses faces, b/c
JspTilesViewHandlerImpl expects the initial HTTP request to map to a
tiles def.

sean

Re: Another Enhancement: JspTilesViewHandlerImpl

Posted by Sean Schofield <se...@gmail.com>.
Well three months later I finally have created the JIRA issue:

http://issues.apache.org/jira/browse/MYFACES-143

sean


On Thu, 23 Dec 2004 09:19:30 +0100, Thomas Spiegl <to...@apache.org> wrote:
> Get the latest cvs-head-version of myfaces. The JspTilesViewHandlerImpl
> renderView changed as follows.
> Only pages defined in the tiles-config will be rendered using
> tiles-support. All other pages are getting renderd as well (ignoring tiles).
> 
> > Curently you are not really
> > able to have a tiles definition with a '.' character in the name of
> > the definition and still have it work with this class.  The class ...
> 
> cann you please add a Jira tracker at http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10600
> 
> regards, thomas
> 
> 
> Matthias Wessendorf wrote:
> 
> >Sean,
> >
> >there exists an work around. Define a
> >tiles-definition for *every* jsf page you want to render.
> >
> >HTH,
> >Matthias
> >
> >
> >
> >>-----Original Message-----
> >>From: Sean Schofield [mailto:sean.schofield@gmail.com]
> >>Sent: Tuesday, December 21, 2004 4:16 PM
> >>To: MyFaces Development
> >>Subject: Another Enhancement: JspTilesViewHandlerImpl
> >>
> >>
> >>If you're using this class, there seems to be a significant
> >>limitation.  That is that every page that is mapped to your
> >>faces servlet (ie. those with *.faces) must be inside a tile
> >>definition.  It is impossible to call the faces page directly
> >>without embedding it in a tile.
> >>
> >>If you're using tiles to begin with, its true that a good
> >>90-95% of your pages will be in a tiles definition.  There
> >>are instances, however, when I access a page directly without
> >>a layout.  Its impossible to do this if the page you want
> >>uses faces, b/c JspTilesViewHandlerImpl expects the initial
> >>HTTP request to map to a tiles def.
> >>
> >>sean
> >>
> >>
> >>
> >
> >
> >
> >
> >
> 
>

Re: Another Enhancement: JspTilesViewHandlerImpl

Posted by Thomas Spiegl <to...@apache.org>.
Get the latest cvs-head-version of myfaces. The JspTilesViewHandlerImpl 
renderView changed as follows.
Only pages defined in the tiles-config will be rendered using 
tiles-support. All other pages are getting renderd as well (ignoring tiles).

> Curently you are not really
> able to have a tiles definition with a '.' character in the name of
> the definition and still have it work with this class.  The class ...

cann you please add a Jira tracker at http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10600

regards, thomas




Matthias Wessendorf wrote:

>Sean,
>
>there exists an work around. Define a 
>tiles-definition for *every* jsf page you want to render.
>
>HTH,
>Matthias
>
>  
>
>>-----Original Message-----
>>From: Sean Schofield [mailto:sean.schofield@gmail.com] 
>>Sent: Tuesday, December 21, 2004 4:16 PM
>>To: MyFaces Development
>>Subject: Another Enhancement: JspTilesViewHandlerImpl
>>
>>
>>If you're using this class, there seems to be a significant 
>>limitation.  That is that every page that is mapped to your 
>>faces servlet (ie. those with *.faces) must be inside a tile 
>>definition.  It is impossible to call the faces page directly 
>>without embedding it in a tile.
>>
>>If you're using tiles to begin with, its true that a good 
>>90-95% of your pages will be in a tiles definition.  There 
>>are instances, however, when I access a page directly without 
>>a layout.  Its impossible to do this if the page you want 
>>uses faces, b/c JspTilesViewHandlerImpl expects the initial 
>>HTTP request to map to a tiles def.
>>
>>sean
>>
>>    
>>
>
>
>
>  
>


RE: Another Enhancement: JspTilesViewHandlerImpl

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Sean,

there exists an work around. Define a 
tiles-definition for *every* jsf page you want to render.

HTH,
Matthias

> -----Original Message-----
> From: Sean Schofield [mailto:sean.schofield@gmail.com] 
> Sent: Tuesday, December 21, 2004 4:16 PM
> To: MyFaces Development
> Subject: Another Enhancement: JspTilesViewHandlerImpl
> 
> 
> If you're using this class, there seems to be a significant 
> limitation.  That is that every page that is mapped to your 
> faces servlet (ie. those with *.faces) must be inside a tile 
> definition.  It is impossible to call the faces page directly 
> without embedding it in a tile.
> 
> If you're using tiles to begin with, its true that a good 
> 90-95% of your pages will be in a tiles definition.  There 
> are instances, however, when I access a page directly without 
> a layout.  Its impossible to do this if the page you want 
> uses faces, b/c JspTilesViewHandlerImpl expects the initial 
> HTTP request to map to a tiles def.
> 
> sean
>