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.
Type: Posts; User: sword101; Keyword(s):
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.
i am using hibernate validation (4.2.0 Final) with JSF 2 and Spring
and here's my configuration:
1- applicationContext:
<bean id="messageSource"...
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...
i was defining icefaces menubar as follows:
<ice:menuBar id="menuBar" orientation="horizontal">
<ice:menuItem value="menuItem" style="float:right" ></ice:menuItem>
...
following are debugs before AccessDeniedException is thrown:
DEBUG [http-bio-8080-exec-1] (PrePostAnnotationSecurityMetadataSource.java:93) -...
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.
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...
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...
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...
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.
well it works fine after i make merging then save or update, as follows:
1- Save:
authority = (Authority) getCurrentSession().merge(authority);
...
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
i have three entities
-Authority , Permission , PermissionCategory
-Desc: authority can contain many permissions, and permission can be in many authorities, and permissionCategory can contain...
I have a spring application
and I make my test class as follows:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {...
any ideas guys ?
3- login.xhtml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
...
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...
hi guys, can you please put all things together in a sample for sharing sake.
some people uses JSF only as core framework & UI too, that's why i am asking
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...
can you please give me a sample, coz i still can't figure it out.
i changed the location of my configuration files as you mentioned above to: /META-INF/applicationContext.xml
and changed the context param:
<context-param>
...
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.
pm file is attached
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...