I have the application served through:
http://localhost:8080/app
and in one of my controllers:
redirect(uri: createLink(mapping: 'admin_role_list', params: params))
When createLink(mapping:...
Type: Posts; User: ShurikAg; Keyword(s):
I have the application served through:
http://localhost:8080/app
and in one of my controllers:
redirect(uri: createLink(mapping: 'admin_role_list', params: params))
When createLink(mapping:...
hmmm....
Yes it does...
But i was looking for something like constraint configuration to validate the files. Because it might bi different in different cases and I don't think that having exactly...
I was trying o find a proper way how to validate uploaded file types in a form.
Is there any documentation or example of how to do it properly? I mean including the mime type...
Thanks,
hmmm.... nice!
Thank you!
OK, another question then:
What happens when the application is deployed? Will the app create the same structure on the server on deploy?
I did, but my problem now is where is the file coming from. Because I don't have 1.4.4 in my project path.
Who can I forse to use my file in 'js/jquery' folder?
Where is this file located?
I have a Command object that contains password & password_confirm fields.
These two get validated separately.
What is the best practice to create a validation that these two are equal?
Thanks...
Thanks, but when I'm trying to install jQuery by running this:
grails installJQuery
it still installs 1.4.3 ???
OK I've got it to the point that the tag renders as:
<script type="text/javascript" src="/timeorg/plugins/jquery-1.4.4/js/jquery/jquery-1.4.4.js"></script>
But where is this file is coming...
Hi,
I'm looking into the jQuery plugin: http://www.grails.org/plugin/jquery
and as described in docs I have added:
<g:javascript library="jquery" plugin="jquery"/>
to the layout.
but...
Is there a way to load ApplicationConfig in unit testing?
Or maybe there is a better practice to test config dependent stuff?
Thanks for an advice.
Thanks a lot.
Ok, that's a bit more clear.
If I understand correctly, in case of one-to-many, when the owning side is 'one' and I'm deleting the 'one' -> all related records in 'many' will be deleted. Right?
OK, make sense, I think.
However, I probably don't understand something...
Docs quote:
Does that mean that if I have User-to-Role (as many-to-many) and the owning side is User. When I'll...
Thanks,
Of coarse you can :)
A need to plugin groups as well and I wanted to use GROM practices, so I thought why not to switch the user-to-role mapping as well.
Do you suggest to use something...
I have domain classes as follows:
User:
class User {
String username
String password
String email
String firstName
String lastName
Hi,
I was wondering, what is the best practice for adding/managing an additional dependency to Grails project?
For example such as: javamail
Thanks.
I have a test that I'm trying to mock a user before the test:
mockDomain(User, [
new User(username:'testuser', password: "password".encodeAsSHA1())
])
For some reason I'm getting an...
What about in filter?
Really? Nobody knows?
OK, I'll use you a bit more:
I have a controller:
package com.iibs.auth
import com.iibs.auth.command.LoginCommand;
class AuthController {
/**
* Shows login form
Well, you are talking about automatic domain model management. I'm trying to get Command object working for me. It' a simple login form. For now :)
But is it a good practice to render a view of another action if needed?
For example: the action processes form submission, but it can potentially render a view that shows the form with errors.
Question is very simple:
Do I have to have a view.gsp file if the action doesn't render anything? I just redirects to another page.
Thanks.