Search:

Type: Posts; User: Nigel W; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    247

    Class constraints validation errors.

    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...
  2. Replies
    0
    Views
    255

    Password validation.

    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...
  3. Replies
    0
    Views
    1,028

    DateTimeFormat - IllegalArgumentException

    In my domain class I have:




    @NotNull
    @DateTimeFormat(iso=ISO.DATE)
    @Type(type="org.jadira.usertype.dateandtime.joda.PersistentLocalDate")
    private LocalDate visit_date;
  4. Thanks again, I have ended up needing to test...

    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;
    ...
  5. Found the issue - thanks for all the help - I had...

    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,
    ...
  6. Thanks again. Moving forward but still a...

    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...
  7. Realising the answer to my own question about...

    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>
  8. Also another question - does LiteDeviceResolver...

    Also another question - does LiteDeviceResolver find the IPad as 'mobile' ?
  9. Thanks again, I have used the sample but as...

    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" />
  10. org.springframework.beans.BeanInstantiationExcepti on

    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...
  11. Replies
    4
    Views
    1,655

    Thanks I will give this a go. Can you get more...

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

    Touchscreen devices

    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...
  13. Replies
    7
    Views
    1,419

    Thanks I have now found my problem it was to do...

    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.
  14. Replies
    7
    Views
    1,419

    Thanks I have used 'authentication' as principal...

    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
  15. Replies
    7
    Views
    1,419

    I am still a little confused as I need a...

    I am still a little confused as I need a 'principal' for

    public String ApplicationHomePage(Principal principal, ModelMap model){


    Thanks for any help,
  16. Replies
    0
    Views
    526

    Upload file issues.

    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...
  17. Replies
    7
    Views
    1,419

    Thanks - only just seen this will give it a try.

    Thanks - only just seen this will give it a try.
  18. Replies
    7
    Views
    1,419

    How to unittest 'principal' ?

    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...
  19. Replies
    2
    Views
    1,068

    Thanks I will have a look at this.

    Thanks I will have a look at this.
  20. Replies
    2
    Views
    1,068

    Spring Security 3.0 – no username.

    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...
  21. Replies
    4
    Views
    1,002

    thanks for this

    thanks for this
  22. Replies
    4
    Views
    1,002

    Thank you I have looked at the other values ...

    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...
  23. Replies
    4
    Views
    1,002

    hbm2ddl.auto - create

    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...
  24. Replies
    1
    Views
    793

    More information: 'temperatureAlarms_ is...

    More information:

    'temperatureAlarms_
    is actually TemperatureAlarms_$$_javassist_5

    But I am still getting the validation failure described above.

    TemperatureAlarms is lazy loaded but its...
  25. Replies
    1
    Views
    793

    Validation of Hibernate proxy fails.

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