History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5368
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Serge Baranov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Refactoring doesn't find CSS styles inside struts tags

Created: 31 Mar 06 18:00   Updated: 04 Jun 07 12:22
Component/s: CSS Editing, J2EE.JSP
Fix Version/s: 5.1.1, Demetra 5218

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,155
Fixed in build: 4,188


 Description  « Hide
Richard Bondi reports:

IntelliJ does not refactor or find occurrences of css styles inside struts
tags.

Consider the following struts jsp tag, inside a jsp that links to css file
foo.css:

<html:select  name="shipmentForm"
                      property="<%=FormFields.VES_NOM_STATUS%>"
                      styleClass="standard"
                      indexed="true"
        >

The problem: although foo.css includes a class ".standard", IntelliJ
refactoring doesn't recognize this:

  • ctrl-space inside styleClass="" does not pop up the styles in foo.css
  • refactoring .standard from within foo.css (shift-F6 on it in foo.css) does
    not find the occurrence in styleClass.
  • ditto with Alt-F7 inside foo.css


 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 31 Mar 06 19:58
I confirm last two issues however I see Control + Space suggesting variants (using sample project from other issue (IDEA-7264)) when css file was added. Please, clarify this and possible attach sample project with problem demonstration.

Thomas Hartwig - 03 Jun 07 10:52
Hello Maxim, how do you add the css file?
I have the same like Richard described and tried to reproduce it with the ideabug test project. But where and how I have to add the file. If I create one in resources it is not determined as an applied tag style file.
Note - in my real project the file is determined for all standard html tags but not for struts tags.

Maxim Mossienko - 04 Jun 07 12:22
IDEA keeps references to CSS files (no explicit location setup)