I am using:
Spring – 3.1.0.M1
Hibernate validator – 4.1.0.Final
I have just starting using the ‘Hibernate validator’ with my Spring implementation.
I am using <mvc:annotation-driven> and...
Type: Posts; User: Nigel W; Keyword(s):
I am using:
Spring – 3.1.0.M1
Hibernate validator – 4.1.0.Final
I have just starting using the ‘Hibernate validator’ with my Spring implementation.
I am using <mvc:annotation-driven> and...
History:
I have just started to use the Hibernate validator and all had gone smoothly apart from my admin input user-defined password field.
I was using @size(min=4,max=8).
The validation...
In my domain class I have:
@NotNull
@DateTimeFormat(iso=ISO.DATE)
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDate")
private LocalDate visit_date;
Thanks again,
I have ended up needing to test for 'touchscreen' so I did need pointing_method in WURFL.
I imported the following
import org.springframework.mobile.device.wurfl.WurflDevice;
...
Found the issue - thanks for all the help - I had not noticed that I needed to change.
public String showUserPage(Principal principal,
@RequestParam(value="userid") Long userid,
...
Thanks again.
Moving forward but still a problem.
What I am confused about - and the WURFL showcase does not cover this - is for the WURFL case how do you "inject the Device into your...
Realising the answer to my own question about IPADs (ie. will not be seen a 'mobile').
I decided to move to WURFL.
So I changed to:
<mvc:interceptors>
Also another question - does LiteDeviceResolver find the IPad as 'mobile' ?
Thanks again,
I have used the sample but as you correct pointed out I also had.
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
Hi,
I am trying to use "spring mobile" but I am having little success so far.
I have made the following changes to my exisiting Spring 3.0 MVC project.
POM - move
spring-orm...
Thanks I will give this a go.
Can you get more details eg. whether the device has a touchscreen ? As it appears the CSS/JS files mentioned above are for touchscreen devices only.
Thanks again,
I am trying to use a javascript library which requires two additions to my JSP for touchscreen devices.
Note: At present I am using Spring MVC.
In the head section:
<link...
Thanks I have now found my problem it was to do with the way I was mocking my service so thank you for the help on the 'principal' which now appears to be working.
Thanks I have used 'authentication' as principal but when the code then calls
principal.getName() I get a NullPointerException.
Do I need do something else as well ?
thanks
I am still a little confused as I need a 'principal' for
public String ApplicationHomePage(Principal principal, ModelMap model){
Thanks for any help,
I have done plenty of searching on the web but I am confused.
I am trying to upload a file and save it as a BLOB (via hibernate) into a MySql database.
The error I get is:
Failed to convert...
Thanks - only just seen this will give it a try.
I am new to Spring Security and I would like some advice.
I am trying to unittest a controller class but I am unsure how to generate the ‘principal’.
I have the following method in my...
Thanks I will have a look at this.
I am new to Spring Security so I hope I have provided enough information.
I am trying to use Spring Security to secure a Spring MVC application that has a domain object that does not include a...
thanks for this
Thank you
I have looked at the other values
create / create-drop / validate / update / hbm2ddl not there
and none seem to do what I was looking for.
I was looking to be able to create on...
I am struggling to find the exact definition of the value 'create'.
With this value when are the tables created and when would they be deleted ?
I am asking this question as I have a 'shared...
More information:
'temperatureAlarms_
is actually TemperatureAlarms_$$_javassist_5
But I am still getting the validation failure described above.
TemperatureAlarms is lazy loaded but its...
I have come across a problem that reading on the web a few people have had but I can see no definitive answer too.
A one-to-one mapped object 'temperatureAlarms' which is retrieved via...