[JBoss Seam] - Portal booking example loses conversation after validation e
by mauro.lopez
In first place, I'm sorry I have done things in the wrong order: created a jira issue first (JBSEAM-344) and this topic second.
The issue details are:
Environment
JBoss 4.0.4.GA
JBoss Portal 2.4.0-Beta1
(used jems-installer-1.2.0.BETA)
JBoss Seam 1.0.1.GA
Description
Followed this steps:
- deployed the application in examples/portal using ant, as described in examples/portal/readme.txt
- Entered http://localhost:8080/portal
- Selected the SeamHibernate portlet tab, registered user, logged in...
- Searched hotels, selected one of them, and pressed the "Book" button.
In the Book Hotel screen, if the credit card number hasn't got 16 digits, a message is shown. After that, having entered 16 digits for the credit card, instead of the confirm screen, the "Search Hotels" screen is shown, with the message "No conversation".
So, after a failed validation, the conversation is lost.
In my own examples I've substituted conversational scope with session scope, just to see them working.
Now I've tested the same use case using the latest jems installer, which bundles JBoss Portal 2.4.0-GA, and I was able to exactly reproduce the problem.
may be I should try a previous version of JBoss Portal?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970348#3970348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970348
19 years, 7 months
[Beginners Corner] - SEAM with JSF (Action not called)
by Vijendra Babar
Hello Friends,
I am using JBoss 4.0.4 GA with JDK 1.5
I have created on sample application of SEAM using JSF.
This application contains 2 text box with one command button.
On action of this button I have called on method (Listener).
The page gets loaded but on clicking the command button following error is prompted:
javax.servlet.ServletException: Error calling action method of component with id _id0:_id6 javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.faces.FacesException: Error calling action method of component with id _id0:_id6
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Validation of text box are running well but its not able to call listener.
Can any one sort out it please.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970344#3970344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970344
19 years, 7 months
[JBoss Portal] - Help from portlet
by jkoek
Hello,
My mission;
I want to implement a help window based on all help that is related to a page. This means I want to trigger the portlets to add help to a specific area on the screen. In my case it will be a div that is hidden until the user presses on the help button.
This way I have a help that is generated by a portlet based on all portlets that are on the page.
My problem;
To accomplish this I'm using the actionURL that is standard for every portlet. So I have one help portlet that generates the needed help for all portlets using the actionURL.
However this is failing; my piece of code;
//for every window on this page we will try to trigger the help page and include this information in a global help page
for (Iterator windowIterator = currentPage.getChildren().iterator(); windowIterator.hasNext();) {
PortalNode portalNode = (PortalNode) windowIterator.next();
if ( portalNode.getType() == PortalNode.TYPE_WINDOW ) {
String actionURL = getPortalNodeHelpURL( resp, portalNode );
private String getPortalNodeHelpURL(RenderResponse resp, PortalNode portalNode ){
if(resp instanceof JBossRenderResponse){
try {
PortalNodeURL childURL = ((JBossRenderResponse) resp).createActionURL(portalNode);
childURL.setParameter( "mode", "help" );
return childURL.toString();
This call leads to an exception.
Can someone tell me what I'm doing wrong?
Jeroen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970340#3970340
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970340
19 years, 7 months
[JBoss jBPM] - Swimland reassignment Example
by jmjava
I recently figured out how to reassign swimlanes for a processInstance and thought an example might help others
Note: the assignments are currently hardcoded but a more production capable version of this Action could be designed that retrieves a processInstance varaible, possibly a hashMap and iterates over the key value pairs assigning the value to swimlane (key).
Any thoughts on the code? I had to do the Session.save(swimlane) in order to get it to work. Anyone see any problems with this?
|
| package test;
|
| import org.hibernate.Session;
| import org.jbpm.JbpmConfiguration;
| import org.jbpm.JbpmContext;
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
| import org.jbpm.taskmgmt.def.Swimlane;
| import org.jbpm.taskmgmt.exe.SwimlaneInstance;
|
| public class SwimlaneReassignmentAction implements ActionHandler {
|
| public void execute(ExecutionContext executionContext) throws Exception {
|
|
| Session hibSession = executionContext.getJbpmContext().getSession();
|
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().getSwimlaneInstance("buyer").setActorId(
| "test8");
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().getSwimlaneInstance("salesman")
| .setActorId("test7");
| try {
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().getSwimlaneInstance("accountant")
| .setActorId("test6");
| } catch (Exception e) {
| Swimlane sl = new Swimlane("accountant");
| hibSession.save(sl);
| SwimlaneInstance sli = new SwimlaneInstance(sl);
| sli.setActorId("test6");
| hibSession.save(sli);
|
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().addSwimlaneInstance(sli);
|
|
| }
|
| try {
|
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().getSwimlaneInstance("shipper")
| .setActorId("test5");
|
| } catch (Exception e) {
|
| Swimlane sl = new Swimlane("shipper");
| hibSession.save(sl);
| SwimlaneInstance sli = new SwimlaneInstance(sl);
| sli.setActorId("test5");
| hibSession.save(sli);
|
| executionContext.getContextInstance().getProcessInstance()
| .getTaskMgmtInstance().addSwimlaneInstance(sli);
| }
|
|
| // propogate the token through the transition on this node
|
|
|
| executionContext.getNode().leave(executionContext, "evaluate web order");
|
|
|
|
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970338#3970338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970338
19 years, 7 months