[jboss-user] [JBoss Seam] - Re: Question about HTTP sessions and Seam Session Context

2007-09-24 Thread markfoerstein
Answered: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117755 Thanks Shane. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088085#4088085 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088085 _

[jboss-user] [JBoss Seam] - Re: Question about HTTP sessions and Seam Session Context

2007-09-24 Thread markfoerstein
Guys, I use Seam authentication and authorisation in my app. I don't really know how it works underneath, but AFAIK, opening a new browser window and logging in with another user should give me another session (in theory). What happens is that the previous window will assume the newly logged u

[jboss-user] [JBoss Seam] - Re: Download pdf file in JBoss Seam

2007-06-18 Thread markfoerstein
You must first set up pdf generation. Just follow chapter 15. "iText PDF generation" in the docs. It has everything you need to know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055361#4055361 Reply to the post : http://www.jboss.com/index.html?module=bb

[jboss-user] [JBoss Seam] - Re: Timers from previous deployments are still persistent

2007-06-14 Thread markfoerstein
tuxzilla, I'm doing exactly the same thing, and having the same problem. Take a look at your \JBOSS_HOME\server\default\data\hypersonic dir. You will find a file named localDB.log Open this file. You will see something like this: | After the first deploy: | INSERT INTO TIMERS VALUES('1','

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-05-11 Thread markfoerstein
Well, not quite, but what was really happening isn't far from weird. I managed to solve the problem by changing from this: GrantedPermission(n : name -> (n == check.getName()), a : action -> (a == check.getAction())) To this: GrantedPermission(n : name -> (n.equals(check.getName())), a : action

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-05-09 Thread markfoerstein
Hi Shane / guys, I really would appreciate any help with this. I have everything set. The role's permissions are on the database, I defined actions to manipulate this permissions through the UI, etc... The "authenticate" method is doing his job, putting all permissions into the working memory.

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-05-07 Thread markfoerstein
That did the trick, but now Im facing another problem. When the user authenticates, his roles and its permissions are loaded, and a new GrantedPermission object is asserted for each permission into the working memory: | public boolean authenticate() { | ... | | for (SphGru

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-05-04 Thread markfoerstein
Hi Shane, Today I finally got my hands on this. My database structure and entities are all set. Step 2) tricked me, since the getSecurityContext() method is not available inside RuleBasedIdentity.instance(). So Im using the following to get the working memory: | WorkingMemory wm = ((RuleBas

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-04-23 Thread markfoerstein
It makes sense and looks like a good solution. I was thinking that the permissions, coming from the database, would be stored in memory somehow, somewhere... but I couldn't realize how to accomplish that so I could make the checks later ;-) I will try to implement it and see what happens, then

[jboss-user] [JBoss Seam] - Re: Unable to catch exception in remove method

2007-04-23 Thread markfoerstein
"jpviragine" wrote : Hi, I'm unable to catch exceptions in remove method (SLSB): | | public void remove(T entity) { | | try { | | entityManager.remove(entity); | | } catch (Exception e) { | | log.er

[jboss-user] [JBoss Seam] - Re: Security - Define dynamic Role in application

2007-04-23 Thread markfoerstein
Hi Shane, I don't know what stsheak wants exactly, but I was about to ask a similar question, so I will use this topic instead of opening a new one. I've successfully implemented authentication and authorization using Seam security. It works great. I defined my roles on the database and bound

[jboss-user] [JBoss Seam] - Re: security pattern

2007-04-12 Thread markfoerstein
You mean extend Identity from your User class like this?: ...class User extends Identity { | ... | I don't think it is the right approach (although Im not the expert here :-P) You use Identity whenever you want to restrict access to a class or method and to query if the user is logged in or

[jboss-user] [JBoss Seam] - Re: handling exceptions

2007-04-12 Thread markfoerstein
Gavin, Im facing the same problem. Im using 1.2.1GA The only difference is that Im throwing in the stateful bean a specific exception I created... | @ApplicationException(rollback=true) | public class GeneralApplicationException extends RuntimeException { | | public GeneralApplicati

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-04-11 Thread markfoerstein
Forgot to say... Im using version 1.2.1GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036429#4036429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036429 ___ jboss-user m

[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @

2007-04-11 Thread markfoerstein
Im facing a similar problem. When an AuthorizationException raises: Using @Restrict at the class level gives me the default error page. @Name("sphconsullanEditor") | @Stateful | @Restrict | public class SphConsullanEditorBean implements SphConsullanEditor { | ... | Using @Restrict at th

[jboss-user] [JBoss Seam] - s:selectDate under Combo boxes / First day of week

2007-04-05 Thread markfoerstein
Hello, In Seam 1.1.0GA, I had no problems using s:selectDate, since the javascript code had a workaround preventing the rendered calendar from going under controls from another form fields like "select". Now, with 1.2.1GA, I'm getting this problem, and couldn't find any topic about that. Is th

[jboss-user] [JBoss Seam] - Re: Security & Authentificaiton of a Seam Application

2007-01-31 Thread markfoerstein
Wow, instant answer. Are you a human or a forum bot or something...;-) PS: I liked the "self destruct" thing ;-) Will check it out... Thanks Gavin. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009174#4009174 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Re: Security & Authentificaiton of a Seam Application

2007-01-31 Thread markfoerstein
"toni" wrote : How can I render parts of the page depending on the user role with this kind of security setup? | | I would like to hide or show menu items depending on whether or not the user belongs to a certain rule. Same here toni ;-) View the original post : http://www.jboss.com/index

[jboss-user] [JBoss Seam] - Re: Security & Authentificaiton of a Seam Application

2007-01-31 Thread markfoerstein
"[EMAIL PROTECTED]" wrote : If you can wait a bit longer for the Seam security features to be completed, I think you'll find you'll be able to apply much more interesting security policies to your application. Just saw that 1.1.5 is out... I can't wait to see some examples on this... Please Nor

[jboss-user] [JBoss Seam] - Re: ResultList from EntityQuery raises OutOfBoundsException

2007-01-29 Thread markfoerstein
Yes, you are right. The message is so obvious, but I couldn't see. I was using Atinav's AveConnect 2.5 JDBC driver for SQL Server. Changed to jTDS 1.2 and everything is fine now. Thanks Gavin for your support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [JBoss Seam] - ResultList from EntityQuery raises OutOfBoundsException

2007-01-29 Thread markfoerstein
Hello, I used seam gen (from 1.1.1.GA) to generate a simple application. When I call my GenCidadeList.seam , I can see the search page containing the first results, and the links Next Page Right and Last Page Right. But when I try to browse the result, clicking on the "Next Page" link I get: ja

[jboss-user] [JBoss Seam] - Re: Self-referencing foreign keys

2006-07-24 Thread markfoerstein
Thanks anyway. Max probably got my idea. The seam templates doesn't handle self referencing tables. I though I could solve this problem by doing some changes to the code, but my expertise is limited. ;-) I will save this example I did for later, and go on learning other Seam aspects... View t

[jboss-user] [JBoss Seam] - Re: Self-referencing foreign keys

2006-07-21 Thread markfoerstein
Last attempt. Anyone? ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960001#3960001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960001 ___ jboss-user mailing list jboss-

[jboss-user] [JBoss Seam] - Re: Self-referencing foreign keys

2006-07-19 Thread markfoerstein
Sorry for flooding the forum reactivating this topic, but I really wanted to know if anyone has a clue on how I could make this work. Thanks folks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959284#3959284 Reply to the post : http://www.jboss.com/index.

[jboss-user] [JBoss Seam] - Re: SEAM CRUD application has no impact to the DB

2006-07-18 Thread markfoerstein
savana, you should be using persistence.xml to reference your jta data source and tell what sql dialect to use, then have a myssql-ds.xml file for the datasource, into your deploy folder. hibernate.cfg.xml is only used to generate de CRUD app, not to run it. Im not sure but I think you're confu

[jboss-user] [JBoss Seam] - Self-referencing foreign keys

2006-07-16 Thread markfoerstein
I used the CRUD generator to create an app based on the Employees table provided by Oracle. After a few adjustments, I got it working pretty nice. This table has a foreign key (manager_id) that references the primary key of the same table (employee_id). That is, an employee can manage many emplo

[jboss-user] [JBoss Seam] - Re: Backbutton Example

2006-07-15 Thread markfoerstein
Did you try the booking example? It seems to handle the back button very well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958270#3958270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958270

[jboss-user] [JBoss Seam] - Old method signature being called. Why?

2006-07-14 Thread markfoerstein
I generated a CRUD app using the latest generator (Hibernate Tools 3.2.0 beta 6). Then I had to change some types in the Entity. eg: I changed my "orderDate" field from Serializable to java.util.Date, since Oracle holds SYSDATE for that column. (I also changed a BigDecimal field to Double which

[jboss-user] [JBoss Seam] - Re: Seam reverse engineering tool

2006-07-14 Thread markfoerstein
"gcowsar" wrote : Maybe I missed the solution, but I saw where other people are having a similar problem and I didn't see the solution: | | | 17:44:58,661 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | javax.faces.FacesException: Cannot get value f

[jboss-user] [JBoss Seam] - Re: Injection/loading not working on Seam CRUD app?

2006-07-14 Thread markfoerstein
Just happened to me too. Thanks captain ;-) But I couldn't find the creation of the resourceBundle anywhere else in the CRUD app, only in the Selector class. I think this could be a bug in the CRUD generator, since this is generated: | ... | private transient ResourceBundle resourceBundle;

[jboss-user] [JBoss Seam] - Re: Avoiding the DRY Principle with beans

2006-07-12 Thread markfoerstein
I can't say you're wrong ;-) Thanks for your reply. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957364#3957364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957364 ___ jb

[jboss-user] [JBoss Seam] - Re: Avoiding the DRY Principle with beans

2006-07-11 Thread markfoerstein
Good point dhinojosa. I kinda liked your approach too. This is a very useful topic. Gavin, could you tell us more about your last reply? I confess I didn't get it when you said EL ignores the declared type. Can you provide us more info about it? Thanks in advance. View the original post : ht