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 - "IllegalArgumentException: Model source is read-only" when adding managed bean to faces-config.xml
Summary: "IllegalArgumentException: Model source is read-only" when adding managed bea...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 99509
  Show dependency tree
 
Reported: 2007-04-19 13:47 UTC by Jiri Skrivanek
Modified: 2007-04-24 10:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (2.31 KB, text/plain)
2007-04-19 13:48 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.