Still waiting for an explanation...
Type: Posts; User: TheMCME; Keyword(s):
Still waiting for an explanation...
Anybody? Maybe someone from Spring?
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...
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>...
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...
Thanks for your help Wesker317.
I added "classpath:ValidationMessages" to my messageSource:
<bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource"...
Isn't it possible?
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...
Actually it works, that was because I declared a group for the validation and I was not testing with that group...
Hi knoxor,
It still doesn't work, what do you need to check in the config?
Thanks.
Am I the only one who uses classes in forms?
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...
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...
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...
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...
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...
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...
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...
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...
Still looking for some help...
Still looking for some help...
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:
...
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...
So maybe a guy from Spring knows how to do?
Am I the only guy using custom editors?