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.
Extracted from issue 226937: <script type="text/javascript"> this.jqEl.datepicker("option", <h:outputText value="$.datepicker.regional[this.cfg.locale?(this.cfg.locale.length > 5?(this.cfg.locale.substring(0,5).replace(/_/g,"-")):(this.cfg.locale.replace(/_/g,"-"))):""]"/>); If you format this in JSF XHTML page, then for instance: <h:outputText is replaced with < h:outputText etc. Perhaps disabling formatting for "incorrect" code would at least a little help? Product Version: NetBeans IDE Dev (Build web-main-10008-on-20130301) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17 Runtime: Java(TM) SE Runtime Environment 1.7.0-b147 System: Linux version 3.5.0-25-generic running on amd64; UTF-8; en_US (nb)
The problem is imo the <h:outputText is passed unchanged to JS parser. So it is actually parsed as "less than h" etc. Marku do you thing this is an error in embedding? Thanks for any help.
The <h:outputText .../> should be preprocessed before passing the script content to the js embedded source.
*** Bug 242603 has been marked as a duplicate of this bug. ***