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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-10 07:46 UTC by Kenji Tachibana
Modified: 2008-01-17 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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.

java.lang.NullPointerException
	at org.netbeans.modules.visualweb.css2.DomInspector.createWindowIfNecessary(DomInspector.java:195)
	at org.netbeans.modules.visualweb.css2.DomInspector.show(DomInspector.java:135)
	at org.netbeans.modules.visualweb.designer.InteractionManager.selectDomInspectorBox(InteractionManager.java:1261)
	at org.netbeans.modules.visualweb.designer.InteractionManager.access$400(InteractionManager.java:118)
	at org.netbeans.modules.visualweb.designer.InteractionManager$MouseHandler.mouseClicked(InteractionManager.java:1421)
	at java.awt.Component.processMouseEvent(Component.java:5520)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
	at java.awt.Component.processEvent(Component.java:5282)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3984)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3819)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3819)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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).