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
>
>