Struts <logic:iterate type="MyClass">

Whether can IDEA use value of parameter TYPE in <logic:iterate> for refactoring?

5 comments
Comment actions Permalink

If you rename or move MyClass, IDEA will correctly change the reference in a JSP, XML or anything else, as long as you mark the "Search in strings and non-java files" option.

0
Comment actions Permalink

But that only works if class's FQN mentioned. What Denis talks about is a
'hard' java reference we definetely should be aware of. Please file a JIRA
issue if that doesn't work for you.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

If you rename or move MyClass, IDEA will correctly change the
reference in a JSP, XML or anything else, as long as you mark the
"Search in strings and non-java files" option.



0
Comment actions Permalink

Yes, renaming & moving works, sorry. IMHO it would be better if IDEA could check up, autocomplete and navigate to
declaration value of TYPE atttibute in <logic:iterate>, <bean:define> etc as in <jsp:useBean>.
--
Denis Popov

Maxim Shafirov (JetBrains) wrote:

But that only works if class's FQN mentioned. What Denis talks about is
a 'hard' java reference we definetely should be aware of. Please file a
JIRA issue if that doesn't work for you.

>> If you rename or move MyClass, IDEA will correctly change the
>> reference in a JSP, XML or anything else, as long as you mark the
>> "Search in strings and non-java files" option.
>>

0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

But that only works if class's FQN mentioned. What Denis talks about is
a 'hard' java reference we definetely should be aware of. Please file a
JIRA issue if that doesn't work for you.


In the case of JSPs you should be able to pragmatically take into
consideration the following:

<%@ page import="java.util.List,
java.util.ArrayList"%>

0
Comment actions Permalink

Sure
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.