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