You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Reinout van Schouwen <re...@rotterdam-cs.com> on 2006/12/06 14:50:01 UTC

myfaces-tiles demo

Hello all,

We're looking at writing our first web app with Java Server Faces. We
are aware that Clay or Facelets is recommended for new projects, but
reusing existing code that was written for (Struts) Tiles is pretty much
required.

To get a feeling for how it works, I fetched the myfaces-tiles example
from [1]. The example loaded up fine after I dropped the .war file in
the Tomcat webapps directory.

However, the demo doesn't quite work like it should. It opens at "page
1" but clicking the link to "page 2" or the "nested tiles" button has no
effect, the browser stays at the first page. The catalina.out log shows:

SEVERE: No serialized component state found in client request!
6-dec-2006 12:46:40
org.apache.myfaces.application.jsp.JspStateManagerImpl
restoreComponentState

Manually entering the page2.jsf URL does load the intended page. Could
anyone tell me what is wrong here?

Another question, while I'm at it: I read that Apache Shale contains
support for Tiles. Is either upgrade path (Myfaces+Tomahawk+Tiles or
Myfaces+Shale) recommended, and why?

Thanks!

[1]
http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-tiles/1.1.4-SNAPSHOT/


regards,

-- 
Reinout van Schouwen <re...@rotterdam-cs.com>
Rotterdam CS B.V.


Re: myfaces-tiles demo

Posted by Greg Reddin <gr...@gmail.com>.
On 12/6/06, Reinout van Schouwen <re...@rotterdam-cs.com> wrote:

> Another question, while I'm at it: I read that Apache Shale contains
> support for Tiles. Is either upgrade path (Myfaces+Tomahawk+Tiles or
> Myfaces+Shale) recommended, and why?

If reuse of code written in Struts with Tiles is required you're
better off using the MyFaces-Tiles support.  Shale works with the as
yet unreleased Tiles 2, which is not compatible with Tiles 1.  If you
understand the concepts of Tiles and are willing to put up with a
"not-quite-done-yet" framework, and don't care too much about
compatibility with Tiles 1, then go with the Shale support.

HTH,
Greg