[JBoss Seam] - Re: Seam and myfaces 1.1.4-SNAPSHOT
by german.delacruz
I think it's not necessary. I've found a guilty :D
I've in my classpath the tomahawk-sandbox-1.1.5-SNAPSHOT library. Inside it, there are some listeners. One of them, RedirectTrackerManager, Store a reference to my event scoped SFSB between requests. Really, not only my beans, but some beans injected by facelets too. As my event scoped SFSB dies after the request, the reference is invalid. This listener put into the new HttpRequest object the reference it's stored in a previous request.
Perhaps this filter can't accept that there is certains beans which cannot be cached.
The source code for it is there http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main...
If I delete the tomahawk-sandbox library, my app works perfect. As the problem is a bit weird for me, perhaps there isn't a solution and tomahawk-sandbox is incompatible with seam.
I'll ask in myfaces mailing list, perhaps there is a solution. At least It helps me to know more aboute seam internals. :D
Anyway, do you still want the code I've made? Perhaps it's interesting to investigate a bit more this.
Thanks.
German.-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967456#3967456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967456
19 years, 8 months
[JBoss Seam] - jBPM in cooperation with SEAM
by montana
Hi all,
I'm evaluating jBPM in cooperation with SEAM.
I built a EE-project structure in eclipse. I also integrated jBPM and my business process. I can use the SEAM provided functionality for starting / ending tasks generated by the process.
BUT, I stuck on transferring data from a web-form to the task variables.
Task definition in process "cardApplication":
| <task-node name="Gather Missing Information">
| <task name="Gather Missing Information" swimlane="administrator">
| <controller>
| <variable name="name"></variable>
| <variable name="firstName"></variable>
| <variable name="income"></variable>
| </controller>
| </task>
| <transition name="re-validate" to="Validation"></transition>
| </task-node>
|
Here the Bean for handling the task:
| @Name("taskBean")
| public class TaskBean {
|
| @CreateProcess(definition="cardApplication")
| public void createNewCardApplication() {}
|
| @StartTask
| public void start() {}
|
| @EndTask
| public void stop() {}
|
| }
|
How can I get the values from a form into the task instance variables? Can somebody give me a hint? Is there some support provided by SEAM?
Thanks in advance.
Montana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967455#3967455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967455
19 years, 8 months
[JBoss Seam] - Re: Merging objects problems.
by bfo81
There's something important I forgot to mention:
You might think that a group gets newly created here:
@In(create=true) @Out @Valid
| private Group group;
But that's wrong, it already exists:
org.hibernate.PersistentObjectException: DETACHED (!!!!!!!!!!!!!!) entity passed to persist:
group is definitely a MANAGED object, that was read via em.find or em.createQuery()... and then got DETACHED during Seam bijection. The only entites that are able to be persisted are those of state NEW/TRANSIENT or REMOVED. That's why em.persist() didn't work. Then you tried em.merge(), which led to an update of an existing group instead of creating a new one.
And the second thing: I didn't exactly understand what's behind your register bean (I'd be interested in the JSF file). Only then we can say if the bean should be stateless or stateful ;).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967446#3967446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967446
19 years, 8 months