Escaping with & or & 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