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 193767 - [73cat] facelets tags in <script> or <style> parsing issue
Summary: [73cat] facelets tags in <script> or <style> parsing issue
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 203307 219729 232730 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-23 12:11 UTC by host
Modified: 2016-07-07 08:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code snippet showing the error (31.20 KB, image/png)
2010-12-23 12:11 UTC, host
Details
Code snippet showing the error (31.40 KB, image/png)
2010-12-23 12:11 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2010-12-23 12:11:22 UTC
Created attachment 104445 [details]
Code snippet showing the error

When I use JSF Facletes' ui:inside in <html><h:head><style> I get a wrong error hint (see attached images) but it works when using it elsewhere, as e.g. in <html><h:head><script>
Comment 1 host 2010-12-23 12:11:53 UTC
Created attachment 104446 [details]
Code snippet showing the error
Comment 2 Marek Fukala 2011-02-18 13:31:54 UTC
hmm, that's because the JSF editor support is based on the html parser result and html parser result parses the <script> tag content as plain text. 

possibly tricky to fix properly so putting off to the next release
Comment 3 host 2011-02-18 13:52:01 UTC
Is this bug possibly related or even the same bug as bug 193228?

..and sorry but I do not think that this is only a minor issue but rather serious problem for web app developers.
Therefore, I would like to see this bug and bug 193228 fixed in 7.0 FCS and hence changed the target accordingly.
Comment 4 Marek Fukala 2011-02-18 14:01:28 UTC
>Is this bug possibly related or even the same bug as bug 193228?
It has nothing to do with the issue, completely different problem.

Given the fact that issue 193228 is not related, what the arguments for the issue being a serious
problem for web app developers?

Please do no take it wrong, I'm just trying to prioritize the issue since they cannot be fixed all.
Comment 5 host 2011-02-18 14:19:48 UTC
Of course, you need to prioritize and since this is not related to the other mentioned bug - which is happening very often (most likely not only) for me and thus should be fixed quickly - so this bug can be scaled down a bit.

But if you look at the screenshots I have attached to this issue, the error does not happen in the script tag - as you wrote - but in the style tag. ...but it is probably not possible to take the code from validating the script tag and reuse it for the style tag, right?
Comment 6 Marek Fukala 2011-02-18 15:36:00 UTC
script and stype tags have the same type of content.
Comment 7 host 2011-02-18 16:06:27 UTC
Then it is strange that the error badge is shown for the style tag but not for the script tag (as you can see in the screenshot).
Comment 8 Marek Fukala 2011-02-18 22:27:05 UTC
Apparently the html content in the style sections is not something the css parser can parse. As for the javascript, it seems the parser somehow parses the content, or at least it doesn't report any errors within. Anyway this is irrelevant to the main problem - script/style the content should be taken into account when processing facelets content. As I said in the very beginning due to the current design this may be quite tricky to fix properly...
Comment 9 Marek Fukala 2011-02-18 22:29:37 UTC
>script and stype tags have the same type of content.
To clarify this statement - I ment the *html parser* ignores the content of this tags basically. The content of the tags is properly mapped and used by the javascript resp. css support.
Comment 10 Martin Fousek 2011-10-10 07:17:50 UTC
Moving to proper category...
Comment 11 Marek Fukala 2012-04-23 10:49:52 UTC
*** Bug 203307 has been marked as a duplicate of this bug. ***
Comment 12 Marek Fukala 2012-10-10 12:41:13 UTC
*** Bug 219729 has been marked as a duplicate of this bug. ***
Comment 13 host 2013-06-10 11:51:28 UTC
Any news on that? Still reproducable with latest 7.4 daily build.
Comment 14 Martin Fousek 2013-08-19 06:15:25 UTC
*** Bug 232730 has been marked as a duplicate of this bug. ***
Comment 15 Martin Balin 2016-07-07 08:54:40 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss