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

Key: IDEABKL-3141
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Eugene Vigdorchik
Reporter: Maxim Shafirov
Votes: 4
Watchers: 4
Operations

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

Extract tag from JSP refactoring

Created: 03 Dec 04 23:16   Updated: 12 Sep 08 18:59
Component/s: JSP Editing, Refactoring
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Depend
This issue depends on:
IDEADEV-623 Html / XHTML / JSP /JSPX / XML usabil... Normal Open
 
Duplicate
This issue duplicates:
IDEADEV-7711 JSP: Extract to tag Normal Open
 


 Description  « Hide
This is very much like extract method refactoring for Java.
Given a selection of HTML+Java mixture in JSP file and the name of the tag to be created (with tag library qualifier) present the "signature" preview dialog that will show up all the attributes new tag should have to get necessary values from out-of-selection context and the list of the variables (output values) new tag should define with suggestions (and ability to change) for their names.

Generating tag from the information collected seem to be straitforward (though complicated) process.



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 13 Mar 05 00:52
This would be especially useful for creating JSP 2.0 .tag/.tagx files.

Taras Tielkes - 31 Mar 05 20:40
Does invoking this on a .jspx file produce an .tagx tag file?

Eugene Vigdorchik - 05 Apr 05 19:46
Well, it should but I'm not quite confident with what precisely this should do
Extracting java is obviously verbatim, as the variables for tag files are EL vars.

Dmitry Kashin - 17 Jan 06 17:35
May fit to Demetra....

Stephen Friedrich - 12 Sep 08 18:59
> May fit to Demetra....
Didn't fit ... and was forgotten for Diana, too...

Duplicates: IDEADEV-7711, IDEA-19371 and IDEA-19372

Also note that simple tag files do not support embedded <% java code %>.