Is this problem similar or the same as when the session times out and the
@Destroy method is invoked. Then when a user access that page after the time
out an exception is thrown and the application is unrecoverable.
In doing some testing I discoverd that if when the user is logged in and the
code snippet...
| @In @Out(scope=ScopeType.SESSION)
| private boolean delete = false;
|
jsf snippet...
| h:column
| f:facet name=header
| h:outputText value=#{pkgHeaders.delete} /
| /f:facet
| h:selectBooleanCheckbox value=#{delete} /
Tried that already and got the following exception...
| javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set
field value: packages.delete
| at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at
No luck resolving the exception when using
@In(required=false)
Any ideas on what is wrong.
Thanks.
Eric Ray
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3962272#3962272
Reply to the post :
I need the SessionContext an this isn't working
@In(required=false,value=sessionContext)
private SessionContext sessionContext;
I get the following error. In fact, I get this error everytime I use
@In(required=false) regardless of what property it's annotating.
| javax.ejb.EJBException:
try
| @In(create=true) @Out(scope=ScopeType.SESSION)
| private Reguser reguser;
|
the create=true will instantiate Reguser when seam trys to inject it
the @Out annotation will allow reguser to live across multiple requests
View the original post :
has anyone experienced this problem?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3961955#3961955
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3961955
___
jboss-user mailing
Here's the session bean snippet...
| @Out(scope=ScopeType.SESSION)
| private DataModel openPackages = new ListDataModel();
|
| private String opQuery = from PackageEntity p, OfficeEntity o where
p.office.id = o.id and p.code = 'OPN' and o.id = 1;
|
| @Create
|
Solved my own problem. I apologize if I've wasted your time.
needed to modify my query from
| from PackageEntity p, OfficeEntity o where p.office.id = o.id and p.code =
'OPN' and o.id = 1
|
to this
| select p from PackageEntity p, OfficeEntity o where p.office.id = o.id and
p.code =
Okay, I figured out where to annotate for EAGER. However, I still need to
better understand lazy initialization. Advice and suggestions greatly
appreciated.
Thanks.
Eric Ray
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3961072#3961072
Reply to the post :
I was using a url fragment and that is incorrect. You should use the filename
of the view that contains the component in question.
However, petemuir suggested an even cleaner solution (IMO) because it's
contained in the code and alleviates the need for the xml file. Here's what I
did instead
I know I can use @DataModel but I want try the following and it seems logical
to me but it doesn't work.
| @Name(package)
| class ... {
| @In(create=true) @Out(scope=ScopeType.CONVERSATION)
| private ListPackageEntity packages;
| }
|
then in my web page do this...
|
The docs say if you annotate the property you don't need getters and setters.
...from the manual...
anonymous wrote : The next two annotations control bijection. These attributes
occur on component instance variables or property accessor methods.
|
| @In
I'll add G/S and see if that
btw, i've already used the @DataModel and @Factory annotations and it all works
great. i'm just exploring here to make sure i understand what it is i'm doing
thanks.
eric ray
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3959977#3959977
Reply to the post :
I'm trying to inject the UserPrincipal object and I get an exception instead.
I've tried everything I know and I can't get this to work. Is this legal?
here's the code
| @In
| public UserPrincipal userPrincipal;
|
| public UserPrincipal getUserPrincipal() {
| return
works just like you said.
a few thoughts...
so i can outject a property and reference the property directory. i thought i
had to name the component with @Name and then outject the property. then i
would reference as follows - component.property.
however, by outjecting a property, i bypass
Yes, I agree. It works. It wasn't clear to me that the view-id property was the
actual name of the file. I'm using facelets and was replacing the file
extension with .jsf. I needed to leave it as .xhtml. Once I figured that out,
it worked just fine.
I though I needed to use the DEFAULT_SUFFIX
I have a simple page using the standard login form using j_security_check.
JBoss is configured to authenticate against an LDAP server. Once authenticated
the welcome-page is rendered and it simply does this...
meta http-equiv=Refresh content=0; URL=extract/index.jsf
When index.jsf is rendered I
anyone else with the same experience...and how did you work around this to get
the behavior that page actions are supposed to give.
Eric Ray
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3959398#3959398
Reply to the post :
Hi guys,
I'm have a problem that I'm unable to solve regarding credentials caching. I
have an ldap user that can authenticate with ldap but is not authorized to use
the application. I want to let the user know that they have authenticated but
failed authorization and to trying logging in with
101 - 120 of 120 matches
Mail list logo