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 234775 - CSS styles of selected element are not available in Facelets with *.xhtml servlet mapping
Summary: CSS styles of selected element are not available in Facelets with *.xhtml ser...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 10:08 UTC by Martin Fousek
Modified: 2013-09-12 10:32 UTC (History)
4 users (show)

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 Martin Fousek 2013-08-22 10:08:21 UTC
As reported by one our NetCat user:
"I've tried the css with chrome connector but I found some limitations like:
It doesn't support servlet mapping with suffix like *.xhtml"

Reproduced by me. When I had in that case .xhtml page I didn't see the styles in the "CSS Styles" window applied on the selected element.
Comment 1 Martin Fousek 2013-08-26 09:08:00 UTC
Now, I gave it try under debugger and I tried debug to the selection code and go through it. It looked to work pretty well and the style was really selected in CSS Styles and node in the Browser DOM. So I'm not able to reproduce it now, in the latest builds. It looks that it could be some temporary issue of the development build before.

Janario, please could you give it try in the latest build [1]? I have few Facelets pages with HTML style definition and servlet mapping set to the *.xhtml: <link href="PATH_TO_FILE.css" type="text/css" rel="stylesheet" />

I'm able to use selection mode in the browser on the page elements and its styles are selected in the CSS Styles panel. This works on the HTML tags as well as Facelets components which uses classStyle attribute.

Of cource the second issue #234776 about the outputStylesheet remains.

[1]    http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 2 Martin Fousek 2013-08-26 09:15:39 UTC
> Of cource the second issue #234776 about the outputStylesheet remains.

Sorry, this doesn't apply too. I'm not able reproduce both issues now. :/
Comment 3 janario 2013-08-27 01:04:45 UTC
I've added some information in the issue 234776
It doesn't match jsf resources because jsf renders with a suffix .xhtml and also a prefix from resources /javax.faces.resource/
e.g:
<link type="text/css" rel="stylesheet" href="/JSFTest/javax.faces.resource/test.css.xhtml?ln=css" />
Comment 4 Martin Fousek 2013-09-12 10:32:45 UTC
Should be fixed since web-main #b86611cc63d9.