Had forgotten about the following one:

<script type="text/javascript">
/* <![CDATA[ */
....
/* ]]> */
</script>

This marks the content as a character stream for the parser, therefore
no entity resolving and no angle bracket interpretation takes place.

HTH,
Tanju


On 2/12/06, Tanju Erinmez <[EMAIL PROTECTED]> wrote:
> Escaping with &amp; or &#38; should do the trick. Perhaps, you might
> want to try the facelets mailinglist as well.
>
> -Tanju
>
>
> On 2/12/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi,
> >
> >
> >
> > I am trying to include the following javacript in facelets pages:
> >
> >
> >
> > <script type="text/javascript">
> >
> >       function printSalesListing(format) {
> >
> >             …
> >
> >
> > window.open('/servlet/RunReport.jsp?type=SalesList&format='
> > + format +
> >
> >                   '&dateFrom=' + dateFrom + '&dateTo=' + dateTo,
> >
> > '', 'height=500,width=700,scrollbars=1,
> > menubar=1,resizable=1');
> >
> >             }
> >
> > </script>
> >
> >
> >
> > But I got an exception on line 3. It says:
> >
> >
> >
> > Error Traced[line: 39] The reference to entity "format" must end with the
> > ';' delimiter.
> >
> >
> >
> > It looks like facelets is interpreting the '&' in front of '&format' as
> > something special.
> >
> >
> >
> > What is the right way to do this in Facelets?
> >
> >
> >
> > Many thanks in advance.
> >
> >
> >
> > Yee
> >
> >
>

Reply via email to