From: rpiaggio <do-...@jb...> - 2006-07-10 19:55:31
|
That's what I was doing when I said: anonymous wrote : | | @Begin(pageflow="PaymentAuthorization") | | public void start() { | | } | However, if I started via a GET (calling the above method via pages.xml) ... When I do that, I get the ClassCastException:java.lang.ClassCastException: org.jbpm.graph.node.StartState | at org.jboss.seam.core.Pageflow.getPage(Pageflow.java:135) due to this line in Pageflow.java: public Page getPage() | { | return (Page) getNode(); | } (Line number has changed because I just upgraded to Seam 1.0.1 to make sure we are on the same page). Seems to me that a page node is expected instead of a start state and so the exception is thrown. Just in case, heres the extract from pages.xml: <page view-id="/authorize.xhtml" | action="#{authorizer.start}" /> | and from AuthorizerAction.java: @Name("authorizer") | @Stateful | @Scope(ScopeType.CONVERSATION) | public class AuthorizerAction implements Authorizer { | | @Begin(pageflow="PaymentAuthorization") | public void start() { | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956733#3956733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956733 |