Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327178 - D&D inserts tag at wrong location in the WPE src pane if part of the page is collapsed.
Summary: D&D inserts tag at wrong location in the WPE src pane if part of the page is ...
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: UI (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Gerry Kessler CLA
QA Contact:
URL: ORACLE_P2
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 01:45 EDT by Carlin Rogers CLA
Modified: 2011-03-15 18:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlin Rogers CLA 2010-10-07 01:45:38 EDT
If a containing element in a JSP is collapsed (using left sidebar '-'/'+' option for a tag) in the source pane of WPE, a Drag & Drop from the palette will insert the new tag into the wrong location of the JSP source.

This only occurs in the source pane. The design time pane handles the D&D correctly and inserts the new tag into the desired location of the document. Also if you do the D&D into the source pane above the collapsed section in the page, the insert is handled correctly. It appears the algorithm for computing the insert location in the document is off when inserting after the element that is collapsed.

To reproduce,
- Open a JSP from a Dynamic Web Project using the WPE.
- Using the collapse/expand ('-'/'+') toggle option from the left sidebar of the source pane, collapse an element in the page.
- Drag and drop a JSF HTML outputText tag below the collapsed section.

Expected:
- new instance of the outputText tag ends up in the desired location.

Actual:
- It ends up in the wrong location.
Comment 1 Raghunathan Srinivasan CLA 2011-03-15 18:37:24 EDT
Deferred due to lack of resources