I got it to work by starting the conversation with a factory method instead of
just relying on the page load method.
I made the following adjustments:
@Out(scope=ScopeType.CONVERSATION, value=adminUserList, required=false)
| private ListUser users;
|
| @Out(required=false,
Oh, that would explain it, thanks.
Yes it is returning null, as I thought that was the appropriate result in the
pages.xml if you don't want to change the navigation. If I return a non-null
result, the navigation handler will be invoked. Is there a happy medium (like
Outcome.REDISPLAY)?
View
The User class is shared across popups. The child objects are only used in one
popup.
I think I have an easier solution though after some thought. I think I will
make editing user changes immediately saved (save per page) and new users, just
queue all the changes to the end and have one save,
I have an administration bean that contains a list of users and then a
dataTable that the user can select a user to edit or delete (or click an add
button on the page to create a new user).
I wanted to start the conversation on add/edit. The problem I am having is that
my methods are never
Sorry, forgot to mention that clicking on the link two times in a row works in
that navigation works, but the user is the wrong user (it ends up always being
the first user in the data table)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956449#3956449
Reply
Here is some more information with seam's logging turned up:
18:31:10,020 DEBUG [Lifecycle] destroying conversation context
| 18:31:10,020 DEBUG [Contexts] destroying: userAdminPword
| 18:31:10,020 DEBUG [Contexts] destroying: facesMessages
| 18:31:10,020 DEBUG [Contexts] destroying:
I am doing something that doesn't seem to fit too well with the framework. I
have a set of user edit pages. I wanted to let the user go to a few popup
windows to edit certain areas of the user's data. Then when the user decides
the changes are good, commit them all at the same time.
That basic
Just some more information,
I tried using merge to re-associate the object with the manager. The problem is
that I have no active transaction, because I don't want the data committed yet
(I using SeamExtendedManagedPersistencePhaseListener)
So when I called my method with NOT_SUPPORTED
Environment:
Facelets 1.0.14
MyFaces 1.1.4 Snapshot
Seam 1.0.1 GA
Problem:
I have having an exception in the RESTORE VIEW of my page. My page flow is this:
1) User hits a listing page with a data table. User clicks a command link in a
row of the table containing a tomahawk updateActionListener.
Well I just found the problem, but not a solution. The WIKI has the problem
described:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ
In my code, I have a data table that is bound to a list from a conversation
scoped bean. It is dying when trying to resolve the bean during the
nevermind, found out that if I set the preserve sort to false, the EL will not
be evaluated during restore view
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955705#3955705
Reply to the post :
Any ideas? Were there any compatibility changes from Beta-2 to now? I still
can't find any hints in the log
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3951558#3951558
Reply to the post :
I saw that validate and validateAll were added so I thought I would try
upgrading. I am current using CVS somewhere around the release of CR1-CR2 (it
prints beta 2 in the startup log). I am using the embedded-EJB container with
Tomcat 5.5.17.
After I upgraded, my tomcat start time went from
Thanks Gavin, that did it. Seems so obvious when you know where to look.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941586#3941586
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941586
Is it possible to get the entity manager from a servlet? I am using JBoss-Seam
CVS and running it on Tomcat under the ejb3 container. I am trying to integrate
support with PayPal and have written a servlet to catch the call from paypal.
In that method I want to get access to my
The other benefit I can see with this is to get global outcome support with
annotations is simply with constants.
public class A {
@NagivigationRule(outcome=JsfNavOutcome.FAILED,
view=JsfView.ERROR_PAGE)
public String a() {}
}
public class B {
@NagivigationRule(outcome=JsfNavOutcome.FAILED,
Looks like I had some deployment issues. Thanks.
BTW - is there a way to find out what hibernate, hibernate-annotations and
hibernate-entitymanager versions jboss-seam is using? Looks like they are all
bundled into 'hibernate-all.jar' and the manifest in that file is the default
one (no
I'm getting the following error:
Caused by: org.hibernate.PropertyValueException: not-null property references a
null or transient value:
org.bethanyefree.data.conference.BreakoutSessionRegistration.registration
| at
Please ignore this thread, it is a result of a Cascade issue between multiple
entities.
Sorry,
Andrew
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938976#3938976
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938976
After getting errors from seam+entitymanager from and old version, I decided to
dare to upgrade admitting that I will lose my local changes (patches that are
still open in JIRA).
After upgrading (retrieved from CVS HEAD) I am getting user transaction errors:
|
Thanks as always Gavin. One more question if you don't mind. If I am using this
method, it begs the question why use session beans at all? POJOs would be
easier (no interface to maintain). Then the combination would be POJO + EJB3
entities. This pattern would be easier and yet still use EJB3
Okay, I am a bit confused how the EJB3 session beans + Seam + Seam managed
entity managers work. I have looked at the examples, and none seem to do this.
What I am doing:
I am creating a registration site for a conference. The registration process is
a wizard invovling 3-x number of steps. On
is NOT_SUPPORTED on all methods the same as putting it on the class and then
marking certain methods as REQUIRED?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938054#3938054
Reply to the post :
http://jira.jboss.com/jira/browse/EJBTHREE-485
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3931901#3931901
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931901
---
Any answer to this? I am still having to work around this issue. It would be
great if the interceptors would intercept during on load instead of just during
invoke application.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3931902#3931902
Reply to the post :
I found the problem, I had two EJBs registered under the same name. One was
supposed to be deleted (I guess I forgot to delete it) and it was registering
on top of the other one. The old one had a bug in it (the begin method was not
on the @Local interface of the EJB).
What stinks with EJB
I have a bug that is resulting in:
SEVERE: Error Rendering View[/conference/index.xhtml]
| java.lang.IllegalArgumentException: create method not found
| at org.jboss.seam.Component.callComponentMethod(Component.java:1127)
| at
Not sure if this is due to hibernate or seam using hibernate.
The error:
org.postgresql.util.PSQLException: ERROR: operator does not exist: boolean =
integer
The stack trace:
| Caused by: org.postgresql.util.PSQLException: ERROR: operator does not
exist: boolean = integer
| at
Sorry, please ignore this post. Found it (right after the post of course).
PostgreSQL likes true and false for boolean data types. The substitution
was causing an error.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3931495#3931495
Reply to the post :
It would be fixed if the ClassValidator is never passed a resource bundle (in
that case, it will always use ValidatorMessage.properties), or if it is
always passed a bundle. From what I saw in the review of the code is that
during initialization ClassValidator is passed the messages bundle, but
Sorry to be an idiot, do you want me to create a new JBoss-Seam JIRA issue or
just attach the seam patch to the hibernate-annotations JIRA that is already
open
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3927336#3927336
Reply to the post :
Jira JBSEAM-143
FYI - The severities control the faces message rendering and possibly user
behavior (you can filter based on severity). The CSS style is based on these
severities. So for example, errors and fatal messages can be marked as red.
Typically, validation components add messages as
I had set @Intercept(InterceptionType.ALWAYS) as shown above. Isn't this what
I needed to ensure this? Also, there was no view to restore, this was right
before render response and on a new view (my phase listener is calling the
method manually)
View the original post :
I went ahead and added a new JIRA issue as it wouldn't make sense in the
hibernate-annotations issue:
http://jira.jboss.com/jira/browse/JBSEAM-144
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3927346#3927346
Reply to the post :
I have been using them. Mostly the datatools extensions. I plan on using the
popup, but haven't hit any pages yet where I want to use it. The components are
normal JSF components and should not have any complication for use in Seam.
View the original post :
I have done similar with no issues. What is the stack trace? What scope are you
exporting account to?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3926594#3926594
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926594
There is an additional complexity to this. It seems that on loading, seam looks
for the validation messages in messages.properties, but during runtime, it
looks at ValidatorMessages.properties. To get it working, I had to use the
concat ant task to concat ValidatorMessages.properties to the end
t:messages (the messages tomahawk component) has the functionality to render
the summary with the label for description by replacing the component's id in
the message summary with the label name. What I have noticed is that the
validation interceptor tag doesn't add the component ID to the
FYI - found a workaround. t:messages has a summaryFormat property that allows
me to do what I need it to do. So this is very low priority for me.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3926293#3926293
Reply to the post :
I would be great if the ifInvalid interceptor annotation could take a
severity so that it would not default to FacesMessage.INFO. I would rather have
hibernate validation issues as error.
Here is a patch to IfInvalid.java:
Index: IfInvalid.java
|
If the hibernate-annotations patch I submitted is incorporated, here is the
patch to seam for this fix:
Index: ValidationInterceptor.java
| ===
| RCS file:
Are interceptors (like the conversational interceptor) only applied in the
invoke application phase?
I am using my on load code from jsf-comp to redirect to a new page on load. The
code uses the MethodBinding class to get the bean's action method. I invoke
it then use the result to pass to the
Okay, I am trying to make a patch from the hibernate annotations validator to
support child objects. One of my objects has the email validator annotation on
it. My faces configuration file is setting the message bundle. However, I am
getting an error when seam starts. It loads some kind of
I'm posting the patch to the hibernate-annotations, now just need to patch the
seam side so that it can try to find the component (right now all child
validation errors end up in the global messages only).
-Andrew
View the original post :
I put the patch in the JIRA issue:
http://opensource2.atlassian.com/projects/hibernate/browse/ANN-208
I used generic collection refection as hibernate annotations are java5, so
thought it was a safe assuption.
This version is working for me, and I really can't spend more time on it. This
I can see what you mean about the validation of the keys and the index issue. I
am mostly thinkin on this from a Seam perspective, where I need to make sense
of the path. I begs an interesting question of how to handle complex keys and
how to represent what element in invalid in the collection.
Okay, I just spent some time looking into the code and found this is not a seam
issue, but a hibernate issue. The ClassValidator does not support collections.
In both the initialization method as well as the actual validation method, it
applies the validation to the field class and the method
HTML got messed up, addresses was supposed to be a generic list of type
Address in the above example
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3924480#3924480
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3924480
Please ignore this post. Ended up being a not so descriptive error message. The
problem was with an Annotation mapping that had changed that has a not null
specification, but was supposed to be nullable. Sorry for the confusion
View the original post :
Query.uniqueResult() method defined as:
Convenience method to return a single instance that matches the query, or null
if the query returns no results.
But if I execute and don't get a result, hibernate throws a Caused by:
org.hibernate.ObjectNotFoundException: No row with the given identifier
I am really busy, but will consider it :-)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3923383#3923383
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3923383
---
This
Okay, I may be trying something unsupported, but I thought this was possible:
I have a stateful session bean and it is the backing bean for registering a new
user. I don't want the user to hit the register page directly, but instead
click a register link from another page. Therefore, I want to
Is there a workaround? Could I cause a redirection on a property access using
an interceptor? Could I tell from an interceptor if the accessed session bean
has an active conversation or not?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3923195#3923195
Reply
Hibernate validation question. I am trying out using only hibernate validation
for my entity beans, so that I don't have to duplication JSF validators when
editing the same object on different pages.
I have my user object with children lists (addresses, emails and phone
numbers). In my SB:
Tried that but I get errors later when using EL expressions to refer to child
properties of my object which is of course null since the conversation method
has not been invoked that creates my user object
View the original post :
Okay, got a solution. I went back to using my on-load library from jsf-comp.
For those interested, it is the jsfExt library at
http://www.sf.net/projects/jsf-comp
(http://sourceforge.net/project/showfiles.php?group_id=137466package_id=168611)
I added a method validateInConversation that checks
Okay new problem. First ear works fine, but the 2nd ear generates an error:
org.jboss.deployment.DeploymentException: Trying to install an already
registered mbean: jboss:service=DynamicLoginConfig
Obviously this is happening because I have the same mbean definition in both
ear files. My
Going to give this a shot, will let you know how it goes. Thanks
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921263#3921263
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921263
Looks like it is working, thanks for the help
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3921360#3921360
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3921360
---
I am pretty new to JBoss and am trying to figure out how to digest
http://www.jboss.org/wiki/Wiki.jsp?page=DynamicLoginConfig
I understand the content of the XML, but not how to deploy this thing. What I
have is two custom realm modules (LoginModule) that I want to use. One is for
my JSF
Thanks a lot Gavin, I really appreciate your effort. Don't mean to be so
negative, its just that I'm trying to get a site developed by the middle of
next month and I haven't even started it yet, been spending the entire time
just trying to configure Seam.
View the original post :
I got an application exception. AWESOME! Never thought I would be so happy to
see my own code fail. Thanks so much for your hard work Gavin. Now to start
writing/fixing my own code :0
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3919436#3919436
Reply to the
I added that, but still having the same problem. What is interesting to me is
that the output to the log shows the DefaultDS being bound into the JNDI tree,
but not my testDatasource being bound. It is as if the jboss-beans.xml and the
persistence.xml are not even being found by the EJB3
Okay, just tried the latest CVS (had updates to some source and some embedded
jar files).
Now at least I'm getting some log output, but I can't say it helps:
java.lang.IllegalArgumentException: java.beans.IntrospectionException: Method
not found: isPersistenceUnitName
at
Sorry I'm causing so much trouble. I still can't get the deployment to work.
I am finally seeing the datasource being bound. However, no EJB3's are being
found bound. When I try to hit the web page, I of course get exceptions:
java.lang.IllegalStateException: Could not start transaction
...
Nevermind, I found the issue. Somewhere along the line, I changed my build.xml
and the seam.properties was not being deployed into the root of my jar. Dang,
what a large waste of time.
Thanks for all the help Gavin
View the original post :
I am still unable to get the seam extended persistence manager working with the
embedded ejb container in tomcat.
Output on startup:
INFO 23-01 21:22:12,414 (SettingsFactory.java:buildSettings:283) -Default
entity-mode: pojo
INFO 23-01 21:22:12,557 (SessionFactoryImpl.java::153) -building
Okay, I am in this boat of having endless problems. I am not sure what I am
doing wrong, but it seams like the data source isn't even getting created.
Environment desired:
Tomcat 5.5
Embedded EJB3 container (I am using the one from seam now and not the updated
one as I had problems -- in
I am attempting to run a new seam project on tomcat with EJB3 enabled (I have
managed to get the microcontainer working with noejb before, but am not trying
the EJB3 solution).
I was looking at the javax.persistence documentation at the hibernate.org site
and their tutorial was showing
Oh, by the way, I checked the jar, and found the method that is supposedly
missing, it is there. Not sure why the error.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918856#3918856
Reply to the post :
Well, I just saw the new jars for hibernate, and downloaded them, and saw they
broke my code. I hope that using the '[EMAIL PROTECTED](field)' will work the
same way the entity did. Also I was bummed to find that the FlushMode.NEVER is
gone. Really bad as Gavin told me to use it for a solution
Any clue on the NoSuchMethodError? I can only find one jar with that deployed
class so it doesn't seem to be a classpath issue (though I won't say I'm 100%
sure). When I deploy the booking example it works, so I am thinking it may be
the updated jars from the hibernate-entity-manager, but can't
Thanks for the reply Gavin. I may go with the FlushMode.NEVER, but wanted to
know about the @TransactionAttribute. Is it possible to use this without EJB3?
It is in the ejb specification, not seam, so was not sure if it would work in
the no-ejb/hibernate only implementation.
View the original
I saw a similar conversation to my question
(http://www.jboss.com/index.html?module=bbop=viewtopict=72052), but it didn't
cover exactly what I was looking for and was hoping someone could clarify how
to accomplish the following. First my setup:
Tomcat 5.5
Hibernate 3.1
The biggest problem that I have with Seam (and it is a HUGE problem), is that
it is useless for the bookmark (direct-URL) loading problem.
Take for example the booking example provided. If you navigate to the following
URL:
http://seam.demo.jboss.com/main.jsf
You will see that there is a
75 matches
Mail list logo