Search:

Type: Posts; User: ShurikAg; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Trouble understanding the mechanism behind createLink and redirect.

    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:...
  2. Replies
    2
    Views
    913

    hmmm.... Yes it does... But i was looking for...

    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...
  3. Replies
    2
    Views
    913

    Validation of uploaded files

    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,
  4. Replies
    12
    Views
    2,939

    hmmm.... nice! Thank you!

    hmmm.... nice!
    Thank you!
  5. Replies
    12
    Views
    2,939

    OK, another question then: What happens when the...

    OK, another question then:
    What happens when the application is deployed? Will the app create the same structure on the server on deploy?
  6. Replies
    12
    Views
    2,939

    I did, but my problem now is where is the file...

    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?
  7. Replies
    12
    Views
    2,939

    Where is this file located?

    Where is this file located?
  8. Replies
    1
    Views
    745

    Validation between the fields

    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...
  9. Replies
    12
    Views
    2,939

    Thanks, but when I'm trying to install jQuery by...

    Thanks, but when I'm trying to install jQuery by running this:

    grails installJQuery

    it still installs 1.4.3 ???
  10. Replies
    12
    Views
    2,939

    OK I've got it to the point that the tag renders...

    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...
  11. Replies
    12
    Views
    2,939

    Include jQuery js.

    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...
  12. Replies
    1
    Views
    1,478

    Loading ApplicationGonfig in unit test

    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.
  13. Thanks a lot.

    Thanks a lot.
  14. Ok, that's a bit more clear. If I understand...

    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?
  15. OK, make sense, I think. However, I probably...

    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...
  16. Thanks, Of coarse you can :) A need to plugin...

    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...
  17. Problem with many-to-many relationship config

    I have domain classes as follows:
    User:

    class User {

    String username
    String password
    String email
    String firstName
    String lastName
  18. Replies
    2
    Views
    924

    Dependency management

    Hi,

    I was wondering, what is the best practice for adding/managing an additional dependency to Grails project?
    For example such as: javamail

    Thanks.
  19. Replies
    1
    Views
    974

    encodeAsSHA1 in unit test

    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...
  20. Replies
    3
    Views
    846

    What about in filter?

    What about in filter?
  21. Replies
    3
    Views
    846

    Really? Nobody knows?

    Really? Nobody knows?
  22. Replies
    6
    Views
    780

    OK, I'll use you a bit more: I have a...

    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
  23. Replies
    6
    Views
    780

    Well, you are talking about automatic domain...

    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 :)
  24. Replies
    6
    Views
    780

    But is it a good practice to render a view of...

    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.
  25. Replies
    6
    Views
    780

    Requirement to have a view

    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.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4