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 101771

Summary: "IllegalArgumentException: Model source is read-only" when adding managed bean to faces-config.xml
Product: javaee Reporter: Jiri Skrivanek <jskrivanek>
Component: JSFAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 99509    
Attachments: Stack trace.

Description Jiri Skrivanek 2007-04-19 13:47:28 UTC
IllegalArgumentException is thrown when you try to add managed bean to
faces-config.xml. To reproduce:

- add Glassfish server in Runtime view
- create a new web application with JSF framework
- open Configuration Files|faces-config.xml
- call 'JavaServer Faces|Add Navigation Case' popup action in editor
- type anything into required fields
- click Add button
- save faces-config.xml
- call 'JavaServer Faces|Add Managed Bean' popup action in editor
- type anything into required fields
- click Add button and you get IllegalArgumentException:  Model source is read-only.

Build 20070419-0800, JDK1.5.0_11, WindowsXP.
Comment 1 Jiri Skrivanek 2007-04-19 13:48:33 UTC
Created attachment 41249 [details]
Stack trace.
Comment 2 Petr Pisl 2007-04-23 13:38:56 UTC
Fixed in the trunk.
Checking in AddManagedBeanDialog.java;
/cvs/web/jsf/src/org/netbeans/modules/web/jsf/dialogs/AddManagedBeanDialog.java,v
 <--  AddManagedBeanDialog.java
new revision: 1.12; previous revision: 1.11
done
Comment 3 Jiri Skrivanek 2007-04-24 10:54:00 UTC
Verified.