<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Current text selection does not resolve to a file (html-css-relations)
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/nimo22">nimo stephan</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/582996#582996">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span style="font-size: 8pt;">Eclipse build-in WebToolsPlattform (WTP) provides useful things like clicking a class in a html-document and jumping to that corresponding css-class:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">for example:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="text-decoration: underline; font-size: 8pt;">this is in index.html:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;"><html></span></p><p><span style="font-size: 8pt;"><head></span></p><p><span style="font-size: 8pt;"><link rel="stylesheet" href="style.css" type="text/css"/></span></p><p><span style="font-size: 8pt;"></head> </span></p><p><span style="font-size: 8pt;"><body></span></p><p><span style="font-size: 8pt;"><div class="test_class"></span></p><p><span style="font-size: 8pt;">hello</span></p><p><span style="font-size: 8pt;"></div></span></p><p><span style="font-size: 8pt;"></body></span></p><p><span style="font-size: 8pt;"></html></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="color: #333333; font-size: 8pt; text-decoration: underline;">this is in style.css:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">.test_class{</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">    font-size: 12px;</span></p><p><span style="font-size: 8pt;">    }</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">Now, when I hover the word "test-class" in the html-editor, a link appears and I can click it - eclipse opens the "style.css" and jumps automatically to the class .test_class. This works wonderful.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">But when using jsf-project with rf-tools this does not work anymore. When clicking a class, then a red text at the left down side appears with the message:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;"><strong style="color: #ff0000;">Current text selection does not resolve to a file</strong></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; color: #000000;">I found out, that the file in my static-web-project .project-folder called "<strong>org.eclipse.wst.common.component"</strong> is responsible for that:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="text-decoration: underline;"><em style="font-size: 8pt;">This is the content of my static web project (where html-jumping to css works):</em></span></p><p><span style="text-decoration: underline;"><em style="font-size: 8pt;"><br/></em></span></p><p><span style="font-size: 8pt;"><?xml version="1.0" encoding="UTF-8"?></span></p><p><span style="font-size: 8pt;"><project-modules id="moduleCoreId" project-version="1.5.0"></span></p><p><span style="font-size: 8pt;">    <wb-module deploy-name="my_website"></span></p><p><span style="font-size: 8pt; color: #ff0000;">        <wb-resource deploy-path="/" source-path="/WebContent"/></span></p><p><span style="font-size: 8pt;">        <property name="context-root" value="my_website"/></span></p><p><span style="font-size: 8pt;">    </wb-module></span></p><p><span style="font-size: 8pt;"></project-modules></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em style=": ; font-size: 8pt; text-decoration: underline;">This is the content of my JSF-project (where html-jumping to css DOES NOT work):</em></p><p><em style=": ; font-size: 8pt; text-decoration: underline;"><br/></em></p><p><span style="font-size: 8pt;"><?xml version="1.0" encoding="UTF-8"?></span></p><p><span style="font-size: 8pt;"><project-modules id="moduleCoreId" project-version="1.5.0"></span></p><p><span style="font-size: 8pt;">    <wb-module deploy-name="my_jsf_website"></span></p><p><span style="font-size: 8pt;">        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/></span></p><p><span style="font-size: 8pt;">        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/></span></p><p><span style="font-size: 8pt; color: #ff0000;">        <wb-resource deploy-path="/" source-path="/src/main/webapp"/></span></p><p><span style="font-size: 8pt;">        <property name="context-root" value="</span><span style="font-size: 8pt;">my_jsf_website</span><span style="font-size: 8pt;">"/></span></p><p><span style="font-size: 8pt;">        <property name="java-output-path" value="/MES/target/classes"/></span></p><p><span style="font-size: 8pt;">    </wb-module></span></p><p><span style="font-size: 8pt;"></project-modules></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">The </span><span style="font-size: 8pt; color: #ff0000;">/src/main/webapp <span style="color: #000000;">of my</span></span><span style="font-size: 8pt;"><span style="color: #000000;"> J</span>SF-Project has indeed the web content (such as html, css,..). However, the html-jumping to css does not work.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt;">Why is the jumping works in a static html-project (with no jsf)? </span></p><p><span style="font-size: 8pt;">Why is the jumping does <strong>not </strong>work in a jsf-project?</span></p><p><span style="font-size: 8pt;">How can I fix it?<br/></span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/582996#582996">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>