You can combine JSF + JSTL, but you'll have to drawback to servlet 2.3 spec (the DOCTYPE notation in your web.xml must be switched).
For subview, I used jsp:includes inside subviews, with no issues.
 
For a more robust use of JSF, Facelets will provide so much good points that is worth a try.
 
Best Regards
 
Rafael Mauricio Nami

 
2006/7/25, Andrew Robinson <[EMAIL PROTECTED]>:
You will have to ask someone else as I use facelets and therefore have
no need for subviews.

On 7/25/06, Jorge Vásquez < [EMAIL PROTECTED]> wrote:
> Thanks Andrew,
> I think I know what is the cause of my html output being so strange, and it
> is the include+subview, I have removed all Jsp and JSTL code and problems
> persisted.
> I can´t imagine converting all pure HTML code to JSF, that would be hundreds
> of hours of work!!!
> Do you perhaps know of all the guidelines that I must follow for using the
> subview functionality correctly? Or is there any alternative out there
> beyond the jsp:include for including one jsp inside another?  (One that is
> pure jsf...)
> Regards,
> Jorge Vásquez
>
> -----Mensaje original-----
> De: Andrew Robinson [mailto: [EMAIL PROTECTED]]
> Enviado el: martes, 25 de julio de 2006 11:57
> Para: MyFaces Discussion
> Asunto: Re: JSF + JSTL + Pure HTML--An Explosive Mixture
>
> You cannot combine JSP and JSTL to my knowledge. If you want to use
> JSTL with JSF, use facelelets and remove all JSP code (<%%>). I would
> recommend not using JSTL (or JSP) code for JSF pages, they don't play
> that well together. Facelets does support some of the JSTL
> functionality, but the author (Jacob) recommends that you do not use
> JSTL if at all possible.
>
> The best thing for conditional rendering (if logic) is to use the
> rendered attribute and when grouping components use the panelGroup
> component. If looping, the Tomahawk dataList control is very useful.
>
> On 7/25/06, Jorge Vásquez < [EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Regards to all,
> >
> > I am migrating a pure JSP+Servlet Application to JSF and I have
> encountered
> > some really particular behaviours.  I decided to use a mixture of JSF +
> JSTL
> > + Pure HTML in order to make the migration less painful but I am
> considering
> > migrating everything to pure JSF due to the strange things that are
> > happening.
> >
> > For instance, in the following code fragment:
> >
> >
> >
> >
> >
> >
> > <c:choose>
> >
> >                     <c:when
> > test="${sessionScope.appStateBean.currentTool == 0}">
> >
> >                              <td><img id=qrLeft
> > src="" request.getContextPath()%>/pages/images/timages/tab_left_gray.gif"
> > Title="" border="0"></td>
> >
> >                              <td id=qrMiddle
> >
> background="">> ay.gif">
> >
> >                                    <img
> > src="" ()%>/pages/images/timages/blank.gif"
> width="2"
> > height="1" Title="">
> >
> >                                    <NOBR>
> >
> >                                    <h:commandLink
> > immediate="true" action="" styleClass="blue">
> >
> >                                     <h:outputText value="Search"/>
> >
> >                                     <f:param name="tab" value="0" />
> >
> >                               </h:commandLink>
> >
> >                               </NOBR>
> >
> >                               <img
> > src="">> width="2"
> > height="1" Title="">
> >
> >                         </td>
> >
> >                         <td><img id=qrRight
> >
> src=""
> > Title="" border="0"></td>
> >
> >                         <td width=5></td>
> >
> >                     </c:when>
> >
> >                     <c:otherwise>
> >
> >                              <td><img id=qrLeft
> > src=""
> > Title="" border="0"></td>
> >
> >                              <td id=qrMiddle
> >
> background=""
> f">
> >
> >                                    <img
> > src="">> width="2"
> > height="1" Title="">
> >
> >                                    <NOBR>
> >
> >                                    <h:commandLink
> > immediate="true" action="" }" styleClass="white">
> >
> >                                     <h:outputText value="Search"/>
> >
> >                                     <f:param name="tab" value="0" />
> >
> >                               </h:commandLink>
> >
> >                               </NOBR>
> >
> >                               <img
> > src="" request.getContextPath()%>/pages/images/timages/blank.gif"
> width="2"
> > height="1" Title="">
> >
> >                         </td>
> >
> >                         <td><img id=qrRight
> > src="">> > Title="" border="0"></td>
> >
> >                         <td width=5></td>
> >
> >                     </c:otherwise>
> >
> >                   </c:choose>
> >
> >
> >
> >
> >
> >
> >
> >
> > The commandLink doesn´t gets rendered at all, I don´t know if there are
> some
> > issues when a commandLink gets inside a conditional JSTL tag?
> >
> >
> >
> > Another curious issue is the following line:
> >
> >
> >
> >
> >
> >
> >               <td valign=middle
> >
> class=welcome>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
> :internationalizedText
> > textId="Search" groupId="topmenu"/>
> >
> >                   <h:outputText
> > value="#{authenticationBean.userId}"/>(<h:outputText
> > value="#{authenticationBean.serverAddress}"/>:<h:outputText
> > value="#{authenticationBean.serverPort}"/>)
> >
> >                </td>
> >
> >
> >
> >
> >
> >
> > The output text appears in the html code next to the form as follows
> >
> >
> >
> > <form id="topMenu:topMenuForm" name="topMenu:topMenuForm" method="post"
> > action=""
> >
> enctype="application/x-www-form-urlencoded">SearchSUPER192.168.1.1182102Abou
> tLogoffHelp…………………
> >
> >
> >
> >
> >
> >
> >
> > I am almost decided to change the style and use pure JSF but I am not
> quite
> > sure how to accomplish conditionals with JSF EL, for instance is it
> possible
> > to compare managedBeans' values with nulls, or constants?  Can anyone give
> > me some examples of sophisticated conditionals using JSF EL with the
> > rendered option?
> >
> >
> >
> >
> >
> > Thanks to all,
> >
> > JV
> >
> >
> >
> >
>
>

Reply via email to