Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Using maven+spring+hibernate in a standalone application

    i am looking for samples or tutorials of using maven+spring+hibernate together in a standalone application, i searched a lot but couldn't get to something useful, please advise.
  2. Hibernate Validation doesn't display custom error messages in JSF 2

    i am using hibernate validation (4.2.0 Final) with JSF 2 and Spring
    and here's my configuration:

    1- applicationContext:



    <bean id="messageSource"...
  3. sessionScope.SPRING_SECURITY_LAST_USERNAME doesn't print anything after login

    i followed the configuration in the following sample:

    http://facestutorials.icefaces.org/tutorial/spring-security-basic.html

    and i am trying to print the logged in username after successful...
  4. java.lang.UnsupportedOperationException: Implement SWF integration with ICEfaces

    i was defining icefaces menubar as follows:





    <ice:menuBar id="menuBar" orientation="horizontal">

    <ice:menuItem value="menuItem" style="float:right" ></ice:menuItem>
    ...
  5. following are debugs before AccessDeniedException...

    following are debugs before AccessDeniedException is thrown:



    DEBUG [http-bio-8080-exec-1] (PrePostAnnotationSecurityMetadataSource.java:93) -...
  6. i mean when accessDenied exception occur (due to...

    i mean when accessDenied exception occur (due to user don't have permission on a service method), the exception is thrown and user is not redirected to the access denied page.
  7. Handling AccessDenied with Method Level Security

    i have a method secured with spring security as follows:


    @PreAuthorize("hasRole('add_user')")
    public void addUser(User user) ;

    and if a user with no enoguh permissions is trying to...
  8. Method Level security with permissions not roles

    i want to make method level security for my spring application.
    the security design is as follows: User > Roles > Permissions
    well when i use
    @PreAuthorize with
    hasRole it works fine
    but when...
  9. Replies
    0
    Views
    1,017

    Unit test for spring security doesn't work as expected with @PreAuthorize("hasPermiss

    hi i have a service method that's only accessible by user who have sufficient permission


    @PreAuthorize("hasPermission(#user,'add_user')")
    public void addUser(User user) ;

    i want to...
  10. When to use custom AccessDecisionManager (need a real example)

    i am just curious
    when i will need to use a custom AccessDecisionManager
    i need some use cases from your experience guys, if anyone have used it before, thanks.
  11. well it works fine after i make merging then save...

    well it works fine after i make merging then save or update, as follows:

    1- Save:


    authority = (Authority) getCurrentSession().merge(authority);
    ...
  12. 1- it's a set not a list, i edited it, and with...

    1- it's a set not a list, i edited it, and with size 0 as an initialization, what's wrong with that ?

    2- full stackTrace is located here:

    http://pastebin.com/WTtqZDdj
  13. NonUniqueObjectException: when updating an entity with hibernate

    i have three entities

    -Authority , Permission , PermissionCategory

    -Desc: authority can contain many permissions, and permission can be in many authorities, and permissionCategory can contain...
  14. Why do i need cglib (Spring AOP) to have multiple test classes?

    I have a spring application
    and I make my test class as follows:


    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = {...
  15. any ideas guys ?

    any ideas guys ?
  16. 3- login.xhtml:

    3- login.xhtml:


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ...
  17. org.icefaces.application.SessionExpiredException: Session has expired

    i am getting the above exception when trying to login in icefaces with spring security, and i don't have any session configuration in my web.xml
    i am getting the exception when clicking on login...
  18. Replies
    29
    Views
    7,702

    hi guys, can you please put all things together...

    hi guys, can you please put all things together in a sample for sharing sake.
  19. some people uses JSF only as core framework & UI...

    some people uses JSF only as core framework & UI too, that's why i am asking
  20. Why to use Spring not JSF (Advantages of spring over JSF)?

    i don't know JSF very well, and i have a friend who is using only JSF
    and he asked me a very open question, why do you use spring not jsf ?
    and because of there are a lot of things about spring in...
  21. can you please give me a sample, coz i still...

    can you please give me a sample, coz i still can't figure it out.
  22. i changed the location of my configuration files...

    i changed the location of my configuration files as you mentioned above to: /META-INF/applicationContext.xml

    and changed the context param:


    <context-param>
    ...
  23. Spring 3 JSF 2 integration example needed

    i want to Integrate Spring 3, Web Flow 2, JSF 2 together
    and i need you to recommend me a good tutorial or example, thanks in advance.
  24. pm file is attached

    pm file is attached
  25. Spring 3 , Spring Web Flow dependencies problem

    i am trying to use spring 3 with spring web flow 2
    the problem is that i am using spring 3, and spring web flow 2 depends on spring 2 libraries so it tries to download them, so is the solution that...
Results 1 to 25 of 46
Page 1 of 2 1 2