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
_
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
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
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','
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
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.
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
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
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
"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
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
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
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
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
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
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
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
"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
"[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
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
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
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
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-
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.
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
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
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
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
"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
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;
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
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
32 matches
Mail list logo