Search:

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

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    158

    ACL, Difference between owner_sid and sid?

    Hi
    I am new to the ACL part of Spring security. I found this excellent blog post http://blog.denksoft.com/?page_id=20.
    What I dont understand is the difference between the owner_sid in...
  2. Thread: Translate messages

    by phe
    Replies
    2
    Views
    279

    Thank you. I did not throw the exception before....

    Thank you. I did not throw the exception before. Now I do and everything works as expected.



    @Override
    @Transactional(readOnly = true)
    public UserDetails loadUserByUsername(String username)...
  3. Thread: Translate messages

    by phe
    Replies
    2
    Views
    279

    Translate messages

    Hi

    I found out how to translate some messages for exampel


    AbstractUserDetailsAuthenticationProvider.badCredentials

    My problem is that I got this message below that I would like to...
  4. Replies
    3
    Views
    2,824

    Thank you ! I got i working in another project...

    Thank you !

    I got i working in another project with.
    @RequestMapping(value = "/add", method = RequestMethod.POST ,consumes = "application/json")
  5. Replies
    3
    Views
    2,824

    Could somone please help? I have been googling...

    Could somone please help? I have been googling and trying examples for 3 nights. I would like to make a post to a controller. Even postindustrielle a string would be ok. Many people have the same...
  6. Replies
    3
    Views
    2,824

    RestTemplate POST JSON

    I am trying to post an object as JSON. I am using the RestTemplate for GET without any problems. What is woring with this setup?






    RestTemplate restTemplate = new RestTemplate();...
  7. Replies
    2
    Views
    311

    This did not work. My test involving...

    This did not work. My test involving PersonService started to fail.

    this one for example


    @PreAuthorize("hasRole('ROLE_ADMIN')")
    public void deletePerson(String email);

    You could of...
  8. Replies
    2
    Views
    311

    I found a way to pass my Services but I think it...

    I found a way to pass my Services but I think it is real ugly. Is this the way of doing this?



    public class CustomMethodSecurityExpressionHandler extends DefaultMethodSecurityExpressionHandler...
  9. Replies
    2
    Views
    311

    Custom SpEL and @Autowired

    Hi
    This is about creating custom methods that can be used with @PreAuthorize and SpEL.
    Is it possible to @Autowire the PersonService into this class? Is it bad practice? Now I just get null when...
  10. Thank you. Number 2 is realy not up to me at...

    Thank you.

    Number 2 is realy not up to me at the moment. 1, and 4 are implemented. 3 will need some improvement but is random.
  11. Secure way of generate new users/reset password

    Is this a secure/good way of generating new passwords for users that forgot their password(or new users)? The user will receive an url in a mail with some thing like...
  12. Performance problem with custom property editor

    My dropdown shown below includes 1000 entites. Should realy setAsText(String leverandorId) in the property editor be called one time for every time my controller and @InitBinder method are called....
  13. Replies
    1
    Views
    254

    Method authorization

    ACL is overkill for my application because my services retrieve all objects from another Spring application. Still i would like that users canīt see data that does not belong to them. As i understand...
  14. Replies
    3
    Views
    656

    I am actually using 3.1.0 RELEASE I got it...

    I am actually using 3.1.0 RELEASE I got it working with hibernate but would like to use eclipselink(my company wants that). Would you like to share your jpaApplicationContext.xml, persistence.xml, a...
  15. Replies
    0
    Views
    302

    Problems setting up JPA2 (eclipselink)

    The configuration below gives me the following error when trying to persist an ent. If I use"org.springframework.orm.jpa.LocalEntityManagerFactoryBean" at least that work.

    If I use



    <bean...
  16. Replies
    0
    Views
    246

    Returning status message to users.

    Hi

    What is best practice when it comes to returning status messages from a controller to a view.

    In liferay I use something similar to this.

    From the controller
    ...
  17. Replies
    1
    Views
    199

    Creating the very first us

    The very first time an application is lanched. How is it possible to generate a user? In the security.xml it is possible to create som user.





    <authentication-manager...
  18. Sorry Could just do this return...

    Sorry

    Could just do this

    return "/admin/sections";
  19. Validation how to get model back. Need to do a redirect.

    Hop you could give me some advise on how to do this. The validation works but I can't do a redirect


    if(result.hasErrors()){
    model.addAttribute("sections",...
  20. Solved this one bye creating message.properties...

    Solved this one bye creating message.properties in resources and creating the messageSource like this

    <!-- Validation error messages -->
    <beans:bean id="messageSource"...
  21. Thank you for your answer. I have tried that...

    Thank you for your answer.

    I have tried that but it gives the same error. Do I need anything else? Is the servlet context the correct file for this?



    <!--Locale resolver -->
    <beans:bean...
  22. Spring Validation, Can't find the error messages.

    I have a problem when using Spring validation. No error messages are found.

    org.springframework.context.NoSuchMessageException: No message found under code 'company.name' for locale 'en_US'.
    at...
  23. Replies
    3
    Views
    346

    Sorry The error was not related to Spring.

    Sorry

    The error was not related to Spring.
  24. Replies
    3
    Views
    346

    Sorry double post....

    Sorry double post....
  25. Replies
    3
    Views
    346

    Well I am getting this error with this...

    Well

    I am getting this error with this approach


    java.lang.StackOverflowError
    at java.lang.Long.toString(Long.java:240)
    at java.lang.Long.toString(Long.java:100)
    at...
Results 1 to 25 of 40
Page 1 of 2 1 2