Well, Sitemesh is quite different from tiles and facelets-templates.

Sitemesh can merge content from different webapps together, which neither tiles 
nor facelets-templates can. If you need that functionality, you need Sitemesh. 
I have worked on a project in the past where we used JSF+sitemesh. It wasn't 
easy and required some custom code but it did eventually work.

If you don't need to merge content from different webapps, then definitely use 
either tiles or facelets-templates, as they are much simpler to work with and 
have better performance.

Facelets is very good, and for a new project is probably worth using. However 
if you've got existing JSP code then using the latest tomahawk trunk with 
tiles2 support is probably best. Hopefully a new tomahawk official release with 
the tiles2 support will be out pretty soon. 

I've heard that the tiles support available in the shale package is not as good 
as tiles2+tomahawk.

Regards,

Simon


---- "Garner schrieb:
> I've gotten JSF to work in sitemesh decorators before.
> 
> I like the idea of sitemesh but feel it has not been designed/used 
> extensively for JavaServer Faces.
> 
> Also what erks me about sitemesh is it doesn't use commons-logging and writes 
> to the sytem out.
> 
>  
> 
> I'd recommend Facelets if starting new.
> 
> If you have existing JSP tags then Tiles will work.  Shale and Tomahawk have 
> a tiles view handler.
> 
>  
> 
> Shawn
> 
>  
> 
>  
> 
> ________________________________
> 
> From: Carlos Adolfo Ortiz Quiros [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 11, 2007 10:17 AM
> To: MyFaces Discussion; MyFaces Development
> Subject: Has anybody integrated Sitemesh+JSF/Tomahawk?
> 
>  
> 
> Hi
> 
>  
> 
> In this URL 
> https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=2204
>  the user has taken the sitemesh-example.war plus the jsf-guessNumber to work.
> 
>  
> 
> Question is:
> 
> I would like to know if Sitemesh works with Tomahawk library using the 
> extensions filter tomahawk needs, that is, Sitemesh template decorates pages 
> written in JSF technology and I also wonder if the Sitemesh template can be 
> also a JSF page.
> 
>  
> 
> Any thoughts?
> 
> Or should I use Facelet?
> 
> Or should I use Tiles 2?
> 
>  
> 
>  
> 
> CARLOS ADOLFO ORTIZ Q
> 
> Ingeniero de Desarrollo
> 
> TRÉBOL Software S.A.
> 
> Tel : (574)3110663 Fax : (574)3113474
> 
> Dirección Cll 16 # 28-195
> 
> Medellín - Colombia
> 
> http://www.trebol.com.co <http://www.trebol.com.co/> 
> 
>  
> 
> La información de este mensaje y sus anexos son propiedad exclusiva
> de TRÉBOL Software S.A. Es  únicamente para el uso del destinatario
> intencional  y  pueden  contener  información de carácter privado o
> confidencial. Le  informamos que cualquier revisión, retransmisión,
> divulgación,  copia  o  uso  indebido  del mismo está estrictamente
> prohibida  y será sancionada legalmente.
> 
> 
> 
> Information contained in this message and every attachment is property of 
> TREBOL Software S.A. Only the destiny user is able to make use of the data 
> here contained, which is private and/or confidential. Any revision, 
> broadcasting, spreading, copy or illegal use of this information is strictly 
> prohibited and will be sanctioned by legal means.
> 
> 
> -----Message Disclaimer-----
> 
> This e-mail message is intended only for the use of the individual or
> entity to which it is addressed, and may contain information that is
> privileged, confidential and exempt from disclosure under applicable law.
> If you are not the intended recipient, any dissemination, distribution or
> copying of this communication is strictly prohibited. If you have
> received this communication in error, please notify us immediately by
> reply email to [EMAIL PROTECTED] and delete or destroy all copies of
> the original message and attachments thereto. Email sent to or from the
> Principal Financial Group or any of its member companies may be retained
> as required by law or regulation.
> 
> Nothing in this message is intended to constitute an Electronic signature
> for purposes of the Uniform Electronic Transactions Act (UETA) or the
> Electronic Signatures in Global and National Commerce Act ("E-Sign")
> unless a specific statement to the contrary is included in this message.
> 
> While this communication may be used to promote or market a transaction
> or an idea that is discussed in the publication, it is intended to provide
> general information about the subject matter covered and is provided with
> the understanding that The Principal is not rendering legal, accounting,
> or tax advice. It is not a marketed opinion and may not be used to avoid
> penalties under the Internal Revenue Code. You should consult with
> appropriate counsel or other advisors on all matters pertaining to legal,
> tax, or accounting obligations and requirements.

Reply via email to