greptilian logo

IRC log for #javaee, 2014-01-06

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:18 pdurbin good
05:19 firebird1 joined ##javaee
06:10 sajjadg joined ##javaee
06:54 firebird1 joined ##javaee
06:55 firebird1 why we use <ui:repeat> of xmlns:ui="http://java
06:55 firebird1 .sun.com/jsf/facelets"
06:55 firebird1 since f:selectItems does the job
06:59 sfisque f:selectItems is for select menus.  ui:repeat has more general uses
07:14 neuro_sys joined ##javaee
07:46 kinabalu joined ##javaee
07:57 firebird1 joined ##javaee
07:57 firebird1 lol i put sop in wrong method and asked for help :'(
08:12 sess_ joined ##javaee
08:42 firebird1 i have map for ui:repeat in .xhtml i get all in oneshot as display instead orflooping {Japan=0, USA=1, China=2}
12:08 Lappro joined ##javaee
12:34 drspockbr joined ##javaee
14:19 Naros joined ##javaee
14:24 sheenobu joined ##javaee
14:38 Quest joined ##javaee
14:45 trollolol joined ##javaee
15:21 Guest34984 joined ##javaee
15:43 kotten joined ##javaee
16:22 huhlig joined ##javaee
17:06 Naros left ##javaee
17:26 pdurbin primefaces is pretty nice
17:38 neuro_sys joined ##javaee
17:38 neuro_sys joined ##javaee
18:03 neuro_sys joined ##javaee
18:03 neuro_sys joined ##javaee
18:23 Guest34984 joined ##javaee
18:49 deanclkclk joined ##javaee
18:51 deanclkclk anyone here?
18:52 pdurbin o/
19:38 Guest34984 joined ##javaee
20:09 Guest34984 I have a site that demands priviliiges and roles for each action. action calls are like calls to urls e.g site.com/do/task1       site.com/do/task2. I want to use spring security. I can make roles column database, assign Spring roles by CustumUserDetails interface.    Now how do I apply those access filters. Should I just use   <security:intercept-url pattern="/do/somePatternOfTasks" access="hasRole('ROLE_USER')"/>   or I have to do something furthe
20:09 Guest34984 r?
20:19 whartung THere's a #spring channel apparently, you can try there
20:22 Guest34984 ok
20:22 semiosis i might be able to help but i dont understand the issue
20:22 Guest34984 semiosis,  read the message again?
20:22 semiosis ha
20:22 semiosis say more
20:23 semiosis you can use intercept-url in xml, or you can use annotations
20:23 semiosis i use a mix of the two
20:23 semiosis preferring annotations usually
20:24 semiosis also you need to wire your custom user details service
20:24 semiosis which is an xml thing, idk if that can be done with annotations
20:30 semiosis Guest34984: thoughts?
20:34 Guest34984 hm
20:35 Guest34984 what is the equivalent to  <security:intercept-url pattern="/do/somePatternOfTasks" access="hasRole('ROLE_USER')"/>      for annotations?     and how can i add multiple roles to a single url?
20:35 Guest34984 semiosis, ^
20:35 semiosis the annotation to guard a method is @PreAuthorize("expression")
20:36 semiosis expressions are written in SpEL - Spring Expression Language - and you can use booleans like hasRole("FOO") AND hasRole("BAR")
20:37 Guest34984 what would be the exact equal for this <security:intercept-url pattern="/do/somePatternOfTasks" access="hasRole('ROLE_USER')"/>
20:38 semiosis idk
20:38 semiosis @PreAuthorize("hasRole('ROLE_USER')") on the methods
20:38 semiosis but idk what the methods are
20:40 Guest34984 ok. semiosis  my app dont just have 5 or 7 roles of admin, manager, or user. It has some priviliges/roles based on the database value returned. How can I manage that?
20:40 semiosis i wrote a custom permissionevaluator
20:41 semiosis which lets you programatically determine if access is authorized
20:41 semiosis http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#el-permission-evaluator
20:42 Guest34984 no, I meant, lets say, I have a  game. one snooker table is accesable to some user but the other table might not be. or some only has read/view access, some to play too.
20:43 semiosis sorry i dont understand
20:45 Guest34984 semiosis,  what if some user only has view access to PRIORITY1 only in this https://lh6.googleusercontent.com/8eos5NHo9vizv0IWI_STzdgbAYi_bf3kX0AJUDA5jRWKGZQF31dtB-5RQb0_j6YqzGj-Nqp1sYbBfN3rjSkCygLVYqNBzVLtHVuFD1hhsU0aXmqwjoqW
20:45 Guest34984 all the boxes are comming from a database table
20:46 semiosis i think a custom permission evaluator is your best choice
20:47 Guest34984 this one http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#el-permission-evaluator       ?
20:47 sajjadg joined ##javaee
20:48 semiosis right
21:02 Guest34984 no other ways?
21:03 semiosis ACL
21:03 semiosis but yuck
21:20 Guest34984 hm
21:29 Guest34984 semiosis,  https://support.leankit.com/entries/21533762-Setting-User-s-Board-Access-w-video       I think for each board, I need a seperate role for the user. see also  https://support.leankit.com/attachments/token/e9gq27x9adc7jmq/?name=Screen_Shot_2012-06-08_at_9.42.03_AM.png
22:02 neuro_sys joined ##javaee
22:02 neuro_sys joined ##javaee
22:20 drspockbr joined ##javaee
22:22 deanclkclk I have with a spring/maven module project
22:22 deanclkclk I have parent module that has 3 child modules
22:22 deanclkclk one of the child is a spring mvc project and the other is a JPA Persistent Project
22:23 deanclkclk the JPA project provides service, repository and data persistent layer
22:24 deanclkclk I added the JPA project as a dependencr to my MVC project. when I start it up...the doesn't create my tables in the db
22:24 deanclkclk evernthough in the JPA project I have <prop key="hibernate.hbm2ddl.auto">create-drop</prop>
22:24 deanclkclk anyone can help?
22:41 Guest34984 hm
22:42 Guest34984 with creat-drop, it should create the tables. I hope the mappings and dependancies are correct. any errors you have seen ?
22:42 deanclkclk nothing
22:42 Guest34984 deanclkclk,  you dont see any table being created?
22:42 deanclkclk nothing
22:42 Guest34984 then definately hibernate cant see the entites
22:43 deanclkclk do you think I need to do an <import of the app-context.xml from the Spring JPA Ulitity Project?
22:43 deanclkclk I haven't done that though
22:43 Guest34984 try this in spring dispatcher .xml
22:43 Guest34984 <context:component-scan base-package="your.package.where.entities.exist >
22:44 Guest34984 and put @Entity at top of each entity class
22:44 deanclkclk which project?
22:44 deanclkclk that's already there
22:44 Guest34984 which is there?
22:44 deanclkclk @Entity
22:44 Guest34984 ok.
22:44 Guest34984 <context:component-scan base-package="your.package.where.entities.exist >
22:44 Guest34984 thats there too?
22:44 deanclkclk that's already there too
22:44 Guest34984 strange then.
22:44 deanclkclk that in my mvc project
22:45 deanclkclk lemme check the JPA Util project if it's there
22:45 sajjadg joined ##javaee
22:45 deanclkclk yes that's already there too Guest34984
22:46 deanclkclk if you can..that's my screen share https://secure.join.me/433-511-894
22:49 deanclkclk ok I'm getting a weird error now
22:49 deanclkclk can you see Guest34984 ?
22:50 Guest34984 sorry, no clue. what I said was my best gues
22:56 deanclkclk ok

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.