Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Still waiting for an explanation...

    Still waiting for an explanation...
  2. Anybody? Maybe someone from Spring?

    Anybody? Maybe someone from Spring?
  3. Ok, here is the fix, using "spring:message": ...

    Ok, here is the fix, using "spring:message":



    <spring:hasBindErrors name="form">
    <div class="message-error">
    <c:forEach items="${errors.allErrors}" var="error">
    <div><spring:message...
  4. Here is how I do:

    Here is how I do:



    <spring:hasBindErrors name="form">
    <div class="message-error">
    <c:forEach items="${errors.allErrors}" var="error">
    <div>${error.defaultMessage}</div>
    </c:forEach>...
  5. Why and how to avoid selects on associated entities while updating?

    Hi guys,

    When I use the saveAndFlush(myObject) method, I see queries that select the associated entities just before the update.

    For instance I have a class User and a class Company, the user...
  6. Thanks for your help Wesker317. I added...

    Thanks for your help Wesker317.

    I added "classpath:ValidationMessages" to my messageSource:


    <bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource"...
  7. Isn't it possible?

    Isn't it possible?
  8. How to access validation messages from a controller?

    Hi guys,

    I have a typical ValidationMessages.properties that contains my validation messages that I use in annotations like
    @NotBlank(message="{xxx.constraints.email.required}")
    Now I would like...
  9. Actually it works, that was because I declared a...

    Actually it works, that was because I declared a group for the validation and I was not testing with that group...
  10. Hi knoxor, It still doesn't work, what do you...

    Hi knoxor,

    It still doesn't work, what do you need to check in the config?

    Thanks.
  11. Am I the only one who uses classes in forms?

    Am I the only one who uses classes in forms?
  12. Problem validating the fields of a class included in a form

    Hi guys,

    I have a class User, I have a form containing this class and I am trying to validate some fields of my User class with annotations but nothing gets validated in User, only the fields in...
  13. Replies
    5
    Views
    2,289

    Hi Enrico, I just tried, I added the bean for...

    Hi Enrico,

    I just tried, I added the bean for my JdbcTemplate in the config and I autowired it in my test, same problem...
    Then I decided to run the test with maven (I was testing in Eclipse) and...
  14. Replies
    5
    Views
    2,289

    So that was probably because of JUnit, that works...

    So that was probably because of JUnit, that works now, here is how I do (if that can help anyone else):

    Maven dependencies: spring-test 3.0.5, junit 4.8.2

    Config:



    <bean...
  15. Replies
    5
    Views
    2,289

    Hi Enrico, Thank you for your reply. However...

    Hi Enrico,

    Thank you for your reply.
    However the way I use JdbcTemplate is correct, check the doc: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/jdbc.html
    All...
  16. Replies
    5
    Views
    2,289

    JdbcTemplate hangs in JUnit test

    Hi guys,

    I have a JUnit test in which I test the number of rows of a table, the thing is it looks like the test passes (I print something at the end) but it hangs, I have to stop the test...
  17. Validation / DataBinder error with MultipartFile field

    Hi guys,

    I created an annotation to validate a MultipartFile field from my form, I want to check that the file doesn't already exist on my storage (Amazon S3) to prevent users from overwriting...
  18. Replies
    3
    Views
    610

    I can not use Ajax. Anyway even if I could, there...

    I can not use Ajax. Anyway even if I could, there must be a way to do that properly with 1 controller.
    The thing is Spring docs or tutorials cover only the simplest cases and it's always a pain in...
  19. Replies
    3
    Views
    610

    Annotations + pagination

    Hi,

    I used to use handle() or formBackingObject() (from SimpleFormController) to handle pagination on pages including a form to change the results at anytime.
    For instance let's say I want to...
  20. Still looking for some help...

    Still looking for some help...
  21. Still looking for some help...

    Still looking for some help...
  22. So it looks like I have to add...

    So it looks like I have to add .withoutProcedureColumnMetaDataAccess() to the template to make it work.
    But I am confused because I thought that we could avoid using:
    ...
  23. SimpleJdbcCall + SQL Server + Stored procedure, problem with in params

    Hi,

    I am trying to call an SQL Server stored procedure that requires params but I always get this error:

    java.sql.SQLException: Procedure or function 'mySP' expects parameter '@param1', which...
  24. So maybe a guy from Spring knows how to do?

    So maybe a guy from Spring knows how to do?
  25. Am I the only guy using custom editors?

    Am I the only guy using custom editors?
Results 1 to 25 of 40
Page 1 of 2 1 2