Skip to content

Tag: grails

Stale element just after Find

I’m using ChromeDriver in Groovy, for clarification. I know that you usually can get a Stale Element Exception if you save an element, the page changes and then you try to access it. But my problem is that I sometimes at random get that error when i literraly just obtained it. My code looks something li…

Grails scaffolding does show nothing

I use grails 2.4.4 I added dependenci in my BuildConfig: and add plugin: Create domain Person: And controller: Also try to use: static scaffold = true, it also doesn’t work. I try to delete my package target. But in my url (http://localhost:8090/grails-com.learning/person) I see nothing There is no the …

Grails Sortable Column Issue

Here, when I click on Sortable Column ‘authority’ – sorting is not done and I am getting a page refresh with the following URL: role/indexList?sort=authority&order=asc Any help much appreciated. Thanks and a note to point that I am new to grails framework Answer You probably want Role.li…

Groovy HTTP ResponseParseException not found

I am trying to make simple GET request using groovy HTTP request. I am expecting JSON response in this form: So far I have done this in my code: and I am always getting this response: I have googled and found out that it’s problem related to groovy and this problem was not occurring before version 2.3.0…

Convert base64 string to image

I am trying to crop/resize user profile image using jquery plugin namely crop.js which sends user image as base64 via ajax to my controller as but I unable to decode this base64 string as Image,Can you guys guide me how can I save my base64 string as image on my server?. Answer This assumes a few things, that…