Changeset 294 for trunk/grails-app/domain
- Timestamp:
- Jan 24, 2010, 10:21:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Person.groovy
r166 r294 54 54 //Overriding the default toString method 55 55 String toString() {"${this.firstName} ${this.lastName}"} 56 } 56 57 // This additional setter is used to convert the checkBoxList string 58 // of ids selected to the corresponding domain objects. 59 public void setPersonGroupsFromCheckBoxList(ids) { 60 def idList = [] 61 ids.each() { 62 if(it.isInteger()) 63 idList << it.toInteger() 64 } 65 this.personGroups = idList.collect { PersonGroup.get( it ) } 66 } 67 68 } // end class
Note: See TracChangeset
for help on using the changeset viewer.