el-api.jar & el-impl.jar from the facelets download.
If you switch to JSF 1.2, use the version from your container (tomcat
at least comes with an el jar).
On 8/3/07, Bryan Basham <[EMAIL PROTECTED]> wrote:
> Thanks everyone for the helpful suggestions so far.
>
> I decided to try facelets. I have walked through the setup
> in section 1.4 of the facelets.dev.java.net docbook. But I
> immediately hit the following error:
>
> [03 Aug 2007 14:09:58,648] ERROR [http-443-Processor24]
> (StandardWrapperValve.java:253) - Servlet.service() for servlet Faces
> Servlet threw exception
> java.lang.NoClassDefFoundError: javax/el/ELException
> at
> com.sun.facelets.tag.AbstractTagLibrary.addTagHandler(AbstractTagLibrary.java:469)
> at
> com.sun.facelets.tag.jstl.core.JstlCoreLibrary.<init>(JstlCoreLibrary.java:32)
> at
> com.sun.facelets.tag.jstl.core.JstlCoreLibrary.<clinit>(JstlCoreLibrary.java:27)
>
> My environment is based on JSF v1.1 (MyFaces v1.1.5):
> jsf-facelets.jar (v1.1.13)
> jstl-1.1.0.jar
> commons-el-1.0.jar
> myfaces-api-1.1.5.jar
> myfaces-impl-1.1.5.jar
>
> Do I need to migrate to JSF v1.2? Or is there some other JAR
> file that I need?
>
> Thanks,
> Bryan
>
> Mike Kienenberger wrote:
> > It would look like this:
> >
> >
> > <div class="addItemTable">
> > <ul class="addItem">
> > <li>
> > <h:commandLink action="#{globalOptionsMgr.addOption}"
> > value="LABEL" />
> > </li>
> > </ul>
> > </div>
> >
> > [ie, what you had without any verbatim tags]
> >
> > I think your only other option would be to xml-escape all of the tags
> > enclosed in your verbatim tags.
> >
> > On 8/3/07, Bryan Basham <[EMAIL PROTECTED]> wrote:
> >
> >> Thanks for the suggestion. I've never used facelets, so would you
> >> be willing to sketch how this chunk of code would look using that
> >> technology?
> >>
> >> Is there any other solution without using facelets? For example, is
> >> there a JSP (or Jasper) configuration that will relax the parser?
> >>
> >> Thanks,
> >> Bryan
> >>
> >> Andrew Robinson wrote:
> >>
> >>> Use Facelets instead of JSP. You will not need verbatim tags anymore with
> >>> it
> >>>
> >>> On 8/3/07, Bryan Basham <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> Hi all,
> >>>>
> >>>> I am using JSPX syntax for my JSF pages. I occasionally need to use
> >>>> raw HTML surrounded by <f:verbatim> tags. However, I am hitting
> >>>> a problem with the Jasper compiler of these verbatim tags break the
> >>>> start/end tags of the HTML.
> >>>>
> >>>> Here's an example:
> >>>>
> >>>> <f:verbatim>
> >>>> <div class="addItemTable">
> >>>> <ul class="addItem">
> >>>> <li></f:verbatim>
> >>>> <h:commandLink action="#{globalOptionsMgr.addOption}"
> >>>> value="LABEL" />
> >>>> <f:verbatim></li>
> >>>> </ul>
> >>>> </div>
> >>>> </f:verbatim>
> >>>>
> >>>> The Jasper error I get is:
> >>>> org.apache.jasper.JasperException:
> >>>> /dhcp/ConfigureServerOptions.jspx(86,14) The element type "li" must be
> >>>> terminated by the matching end-tag "</li>".
> >>>> at
> >>>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
> >>>> at
> >>>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
> >>>> at
> >>>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
> >>>> at
> >>>> org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:211)
> >>>>
> >>>> Does anyone know how to work around this problem?
> >>>>
> >>>> Thanks,
> >>>> Bryan
> >>>>
> >>>>
> >>>>
> >>>>
> >>
>
>