This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Languages
»
Groovy
Author
Cannot set readonly property - when modifing attributes
Bill Lee
Greenhorn
Joined: Feb 02, 2007
Posts: 20
posted
Jun 26, 2009 10:52:42
0
I am attempting to modify an attribute based on a criteria. When I attempt the following, I get
Exception in thread "main" groovy.lang.ReadOnlyPropertyException: Cannot set readonly property: value for class:
java.lang.String
allRecords.findAll{
it.'@ZipCode'.equals('60245')
}each{
it.'@State'.value = 'IL'
}
Does anyone know how to surpass this exception? Thank.s
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Cannot set readonly property - when modifing attributes
Similar Threads
Toggling between writable and readonly for a text box
How to access the Struts HTML elements in JS
java.sql.SQLException
JSP read only fields !
set & get methods
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter