Hello,
David Delbecq wrote:
Hi, you have 2 possibilities
1) You move this code to a facelet tag handler and make foo a JSF
managed bean
2) you create 2 custom facelets tags that support JSP inclusion (this is
a pretty usefull thing to do when migrating code, we did it here)
(why 2 tags, because you have case when you want jsp included during
facelets restor view, and case when you want this to occur during
component rendering, depending on jsp code)
could you please give a small example on how to do that?
thanks in advance
En l'instant précis du 21/03/07 13:29, [EMAIL PROTECTED] s'exprimait
en ces termes:
I have been considering moving to Facelets. I have studied it and like
what I see. One problem I see is how to port my JSP code into Facelets.
By this I mean, in some of my pages, I have JSP code
<jsp:useBean id="foo" class="com.myapp.bean.fooClass" scope="session" />
<%
if (!foo.isLoaded())
{
response.sendRedirect("login.jsf");
}
%>
Does anyone know how you might port this? I am open to design changes
as well.
Thanks!