If you want to process for instance a list of ids from a view:
View Code:
<td><g:checkBox name="coursesel[]" checked="false" value="${registrationInstance[0]?.course?.id}"/></td>
Then in the controller, to extract these as a List/Set of Longs:
Controller Code:
...
If you're querying with Grails/Hibernate and you need nested classes to be loaded by the query, you have to specify the fetchmode for the query, by default this is ...
Yet another super quick post...
I had falcone-util installed and then I installed searchable and searchabl"ised" a domain class - on compiliation - no prolem but when I tried to execute ...
A quick and dirty slide listing.... in groovy
public List getContent(SearchOptions so) throws IOException, SLMPException, SlideShareException, SlideShareErrorException {
log.debug "Get Some Slides ${so.keywords}"
SlideShareAPI ssapi = SlideShareAPIFactory.getSlideShareAPI(
grailsApplication.config.SLMP_SLIDESHARE_API_KEY, // Your API key
grailsApplication.config.SLMP_SLIDESHARE_DEVELOPER_KEY
);
com.benfante.jslideshare.messages.Tag ...
This is a quick post about something that caugh me out regarding inheritance of properties between domain classes, constraints are not inherited with this approach anyhow!
class X {def ...
To start developing for CMS Made Simple, try this:
Download http://dev.cmsmadesimple.org/project/files/45 it's a skeleton module, it'll show you the basics of how development works - feel free to harass ...
Here's a quick intro to using the grails / groovy shell
///DOMAIN CLASSES
package ie.codecrunchers.accounts class User { String username String password static hasMany [postings:UserContent] } ...
Updated!!
I'm using grails console to debug some code and it keeps freezing, on what I think are null pointer exceptions,.. I found that wrapping the script in a try catch ...
If you've got a .nrg file and you need to use it on linux with k3b or similar - try the following:
The .NRG file simply prepends 300bytyes of header info ...
Too busy at the moment, within the next 2 months I;ll be doing an introductory series on Groovy/Grails !
Installing
Hello World
Tag Libraries
Automated Testing
...