[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4821) Adding of Open On functionality for css classes which are added by complex link
Sergey Dzmitrovich (JIRA)
jira-events at lists.jboss.org
Thu Aug 27 10:12:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12483047#action_12483047 ]
Sergey Dzmitrovich commented on JBIDE-4821:
-------------------------------------------
Junit tests have been added.
Test cases for new functionality:
1) create test.css file in WebContent/pages/css folder
2) input .classA { color:red }
3) create test.html in some folder
4) input
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
<head>
<link href="#{facesContext.externalContext.requestContextPath}/pages/css/test.css" />
</head>
<body>
<div class="classA">Test</div>
</body>
</html>
5) Do OpenOn action for class="classA" of the first div tag
6) ASSERT: test.css is opened and cursor passed to .classA
> Adding of Open On functionality for css classes which are added by complex link
> --------------------------------------------------------------------------------
>
> Key: JBIDE-4821
> URL: https://jira.jboss.org/jira/browse/JBIDE-4821
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: Visual Page Editor core
> Affects Versions: 3.1.0.M3
> Reporter: Sergey Dzmitrovich
> Assignee: Sergey Dzmitrovich
> Fix For: 3.1.0.M4
>
>
> There is way in wtp to get parsed css model from style's container tags ( <style> and <link> tags). It means we shouldn't do routine operations ( parse content of <style> or parse href attribute of <link> and then parse css file, keep and release the models during work ) ourselves. Bu It has some limitation e.g :
> 1. if <link> is not contain attribute "rel" or its value differs from "stylesheet" or attribute type is not equal "text/css" then css model will not be given
> 2. if "href" attribute of <link> is contain el expressions (e.g <link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/css/test.css" "/> ) then model will not be given.
> So it requires extension of this wtp functionality to support these case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list