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 227347 - Mixing JavaScript and JSF results in Error badge
Summary: Mixing JavaScript and JSF results in Error badge
Status: RESOLVED DUPLICATE of bug 226207
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 10:29 UTC by big_al
Modified: 2013-03-13 13:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (93.88 KB, text/plain)
2013-03-12 10:29 UTC, big_al
Details

Note You need to log in before you can comment on or make changes to this bug.
Description big_al 2013-03-12 10:29:54 UTC
I've got a JSF Composite Component that uses Facets. The Facet it inserted into JavaScript code generated by the Composite Component. In NetBeans 7.2 this was not a problem and no error badget was displayed. In NetBeans 7.3 an Error Badge is shown. The component component code looks like this:


<composite:implementation > 
        <script type="text/javascript">
            $(document).ready(function() {
                $("##{cc.clientId}:dialog".replace(/:/g, "\\:")).dialog({
                    stack: true,
                    modal:#{cc.attrs.modal},
                    show: "#{cc.attrs.showEffect}",
                    hide: "#{cc.attrs.hideEffect}",
                    autoOpen:#{cc.attrs.display},
                    width:#{cc.attrs.width},
                    height:#{cc.attrs.height},
                    buttons: {
                        <composite:renderFacet name="buttons" />
                    }
                });
            });

            if (#{cc.attrs.openBy != null}) {
                $("##{cc.attrs.openBy}".replace(/:/g, "\\:")).click(function() {
                    $("##{cc.clientId}:dialog".replace(/:/g, "\\:")).dialog("open");
                    return false;
                });
            }
        </script>  
</composite:implementation>


It is where <composite:renderFacet name="buttons" /> is inserted that the error appears.



Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Mac OS X version 10.8.2 running on x86_64
Java; VM; Vendor = 1.7.0_15
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Comment 1 big_al 2013-03-12 10:29:59 UTC
Created attachment 132506 [details]
IDE log
Comment 2 Vladimir Riha 2013-03-13 13:16:50 UTC
Seems like a duplicate of issue 226207, the reason is the same, using 

<composite:renderFacet name="buttons" />

inside <script>, removing it helps. Thanks for reporting

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