This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 123722 - Layout inspector does not update dynamically.
Summary: Layout inspector does not update dynamically.
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
Depends on:
Reported: 2007-12-10 07:46 UTC by Kenji Tachibana
Modified: 2008-01-17 08:46 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Tachibana 2007-12-10 07:46:19 UTC
When I invoke layout inspector on NB6.0 in Visual Web JSF project and 
remove some components from design editor, layout inspector does not update
and removed components are still remaining. 
Then, close inspector window and re-invoke it, following exception are displayed and
inspector does not invoked.

	at org.netbeans.modules.visualweb.css2.DomInspector.createWindowIfNecessary(
	at org.netbeans.modules.visualweb.designer.InteractionManager.selectDomInspectorBox(
	at org.netbeans.modules.visualweb.designer.InteractionManager.access$400(
	at org.netbeans.modules.visualweb.designer.InteractionManager$MouseHandler.mouseClicked(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
[catch] at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

To Reproduce:

1. Create Visual Web JSF project.
2. Create 2 button on the page.
3. Click Ctrl + Alt + one of the button, to invoke layout inspector.
4. Remove one the button from design page.
5. In layout inspector window, removed button is still displayed. 
6. Close inspector window.
7. Click Ctrl + Alt + the button, again.
8. Above exception is displayed and layout inspector never displayed.
Comment 1 Winston Prakash 2007-12-10 17:08:37 UTC
Since the exception is coming from designer, assigning this to PeterZ for initial analysis.
Comment 2 Peter Zavadsky 2007-12-12 20:57:45 UTC
Yes, this is as designed. The layout inspector is static, changing this to RFE.
Comment 3 Kenji Tachibana 2007-12-13 00:49:25 UTC
Thank you for your evaluation.

I could understand that inspector is designed static, so it's OK to RFE to
create dynamic inspector.
However, it should not output the Exception, and it's a bug.
If this RFE is integrated soon, fine to wait,
but if not, please fix at least not to display the Exception soon.

If you need the other bug ID only for Exception, please let me know and 
I'll file it.

Comment 4 Peter Zavadsky 2007-12-13 01:14:45 UTC
Oh, sorry, you're right, I must have been blind. The exception is a bug for sure, changing it back to a defect. After I
fix the exception, then I change it to the RFE.
Comment 5 Peter Zavadsky 2007-12-13 01:29:04 UTC
I found that the NPE was already fixed (but unfortunatelly it didn't make it into 6.0), see issue #121239. So I am
changing the rest to the RFE (to make the DomInspector dynamic).