This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228899 - 7.3, javascript, editor, jstl core tag in script element causes error message
Summary: 7.3, javascript, editor, jstl core tag in script element causes error message
Status: RESOLVED DUPLICATE of bug 226207
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 13:38 UTC by ptomasek
Modified: 2013-04-23 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ptomasek 2013-04-23 13:38:58 UTC
Product Version: NetBeans IDE 7.3 (Build 201302261559)
Java: 1.6.0_33; Java HotSpot(TM) 64-Bit Server VM 20.8-b03
Runtime: Java(TM) SE Runtime Environment 1.6.0_33-b05
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)

When you use a JSTL Core tag inside a script element the ending jstl tag will be marked with an error:

Expected an operand but found <

Steps to reproduce:

1. Create a new JSF page in NetBeans 7.3 (e.g. newjsf.xhtml).
2. Paste the following code as an example:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:c="http://java.sun.com/jsp/jstl/core">
    <head>
        <title>Facelet Title</title>
		<script type="text/javascript">
			function showSpecifiedXefDocument(documentUrl){
				window.open(documentUrl);
			}
			
			<c:forEach var="document" items="#{sb_contractSave.docList}">
			showSpecifiedXefDocument('#{document.url}');
			</c:forEach>
		</script>

    </head>
    <body>
        Hello from Facelets
    </body>
</html>

Expected outcome:

Page will be validated with no errors.

Actual outcome:

Line 14 will be marked with an error:

newjsf.xhtml:8:3 Expected an operand but found <
			</c:forEach>
			^
Comment 1 Vladimir Riha 2013-04-23 13:59:37 UTC
Thanks for reporting.

*** This bug has been marked as a duplicate of bug 226207 ***