[JBoss Seam] - A conceptional question about Seam conversation
by speleomaniac
Hello everybody,
I have a very basic question about conversations in Seam.
One thing that is confusing me with conversation feature of Seam.
To my understanding, lets say I defined a workflow with 5 JSF pages which should run under a converstational scope.
If I read and understand the documentation correctly, if I am going to navigate directly at the 3rd JSF page without going 1st and 2nd first (in the middle of the worklfow and conversation), because I didn't initialise the conversation at the 1st page with a begin tag, Seam should complain about this.
This is the behaviour, I can't get at the practice, 3rd page rendered successfully and now if I click the continue or back button at the 3rd page, now it complains about the conversational state is not initialised because the method with begin tag is never called.
So is conversion scope bounded to action listeners or to actions? I always thought the controller is checking for the conversationId in the URL and if it is missing, it is not letting go in the middle of the conversation.
And I am also confused with the example codes now. @Conversational tag is not necessary now(examples are missing it)? ifNotBegunOutcome is depracated, is there a special reason for this?
The alternative no-conversation-view-id is defined pages.xml, but now is this defined once for the whole application? What if I have more then workflows and different entry points?
As you may see, I am confused little bit, any help would be appreciated :)
Thx in advance...
PS. If Seam conversation is not designed to provide this behaviour, do you know anyother framework that provide this behaviour out of the box
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110148#4110148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110148
18 years, 4 months
[JBoss Seam] - Ajax, conversation and multiple requests..
by appendix
Hi!
I'm having an entity bean ("personal") with some attributes, which I would like to edit through a view page - nothing special so to say.
But I'm getting some random
anonymous wrote :
| The conversation ended, timed out or was processing another request
|
JSF Messages while editing the page exhaustively.
I've used seam-gen to set up the project and everything is working well.
My issue arose after I decorated all the input fields on the edit view with s:decorate and do a re-render on "onblur" to get the field immediately validated and a warning right next to the field, if validation fails.
Let me examplify with the following fraction from personal.xhtml:
| <s:decorate id="nameDecoration" template="/layout/edit.xhtml">
| <ui:define name="label">
| <h:outputText value="#{messages['newPersonal.label.accountName']}"/>
| </ui:define>
| <h:inputText id="name" required="true" value="#{personalHome.instance.accountName}">
| <a4j:support event="onblur" reRender="nameDecoration" />
| </h:inputText>
| </s:decorate>
|
All other input fields (approximately 20 - just to do some stress test) for each attribute of the entity bean is alike (id and reRender attribute adjusted respectively).
When the page is displayed by the browser and a regular user is editing each field after another, not causing the onblur event being fired too quickly, everything is fine.
But consider a user, selecting the first input element with the mouse and then hitting (and continuously holding down) the "Tab" key on the keyboard, leading to onblur events being fired from each input element very quickly -> The quoted message will pop up and the user is redirected to the home view.
This behavior is definitely not what I'd like to see, so I'm asking myself, how to prevent this situation?
I've tried to put a
anonymous wrote : eventQueue="personalAjaxQueue"
on every a4j:support element, improving the situation, but randomly I'm still getting the described behavior.
Am I understanding the whole situation right, that the redirect is caused, because an AJAX request is fired and the old one is not completely processed (and it happens in the same conversation)?
Has anyone else seen this behavior on forms with many input fields?
Any suggestions?
Any help is greatly appreciated!
Best regards, Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110140#4110140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110140
18 years, 4 months
[JBoss Seam] - How to use a Seam component in swimlane assignment
by chawax
Hi,
My application uses a JBPM business process and I need to assign tasks on runtime. To do this I made a Seam component and I call it in the swimlane assignment expression.
To be more precise, the task is defined as following :
<task-node name="validation">
| <task swimlane="valideurs"></task>
| <transition to="acceptation" name="ok"></transition>
| <transition to="refus" name="nok"></transition>
| </task-node>
And the swimlane is defined as following :
<swimlane name="valideurs">
| <assignment expression="#{assignmentHandler.assignByRole('USAGE')}"></assignment>
| </swimlane>
The assignByRole method of my assignmentHandler component returns String[] (not sure it is correct, but I could not find any example).
But when I create a process instance, I have the following error :
11:55:04,241 ERROR [STDERR] Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve assignment expression '#{assignmentHandler.assignByRole('USAGE')}'
| 11:55:04,241 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97)
| 11:55:04,241 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor$2.process(SeamUserCodeInterceptor.java:102)
| 11:55:04,241 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
| 11:55:04,241 ERROR [STDERR] at org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAssignment(SeamUserCodeInterceptor.java:96)
| 11:55:04,241 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:226)
| 11:55:04,241 ERROR [STDERR] at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:201)
| 11:55:04,241 ERROR [STDERR] ... 171 more
| 11:55:04,241 ERROR [STDERR] Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't interpret first term in expression '#{assignmentHandler.assignByRole('USAGE')}'
| 11:55:04,241 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:155)
| 11:55:04,241 ERROR [STDERR] at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75)
| 11:55:04,241 ERROR [STDERR] ... 176 more
So it looks like you can not use EL expressions in swimlane assignment ... Anyone has an idea how I should do this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110136#4110136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110136
18 years, 4 months
[JBossWS] - Juddi broken on 4.2.1 + 4.2.2
by pleamon
Not sure if this is the right forum or not, so feel free to move it.
I've been using jboss AS 4.0.5 GA and 4.2.0 GA and have been successfully using the juddi service as my uddi registry. When I move to 4.2.1 GA or 4.2.2 GA I now get this:
ERROR [org.jboss.jaxr.juddi.JUDDIServlet] org.jboss.ws.core.soap.TextImpl
java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl
at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...
There seem to be a few related posts/jira issues, but I'm not sure if they are the same issue or not.
Basically I'm trying to publish to the registry. I've tried using various server configs, but even the 'all' config doesn't work.
Is this something that will be fixed in a future release?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110130#4110130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110130
18 years, 4 months