[jboss-user] [JBoss Seam] - Re: Problems with links in pageflow pages based on templates

chawax do-not-reply at jboss.com
Wed Nov 28 11:10:56 EST 2007


Thanks for your response. 

Well, there is no exception, but nothing happens when I click on the link (same behaviour as a null return from a backing bean) and I have this message in the server log :

sourceId=null[severity=(WARN 1), summary=(Illegal navigation), detail=(Illegal navigation)]

If you say it should work, it means there is something I do wrong.

My pageflow is as following :

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <pageflow-definition name="processusCrud">
  | 	<start-state name="start">
  | 		<transition name="default" to="infosGeneralesProcessus" />
  | 	</start-state>
  | 	<page name="infosGeneralesProcessus" view-id="/processus/processusCrud/infosGeneralesProcessus.xhtml">
  |    	  	<redirect/>
  | 		<transition to="processus paramétrable ?" name="suivant"></transition>
  | 		<transition to="fin" name="annuler">
  | 			<action expression="#{processusCrud.annuler}" />
  | 		</transition>
  | 	</page>
  | 	<decision name="processus paramétrable ?" expression="#{processusCrud.modeleProcessusSelectionne.parametres != null}">
  | 		<transition to="parametrageProcessus" name="true">
  | 			<action expression="#{processusCrud.refreshParametrage}" />
  | 		</transition>
  | 		<transition name="false" to="recapitulatifProcessus"></transition>
  | 	</decision>
  | 	<page name="parametrageProcessus" view-id="/processus/processusCrud/parametrageProcessus.xhtml">
  |    	  	<redirect/>
  | 		<transition to="recapitulatifProcessus" name="suivant"></transition>
  | 		<transition name="precedent" to="infosGeneralesProcessus"></transition>
  | 		<transition to="fin" name="annuler">
  | 			<action expression="#{processusCrud.annuler}" />
  | 		</transition>
  | 	</page>
  | 	<page name="recapitulatifProcessus" view-id="/processus/processusCrud/recapitulatifProcessus.xhtml">
  |    	  	<redirect/>
  | 		<transition to="fin" name="valider">
  | 			<action expression="#{processusCrud.valider}" />
  | 		</transition>
  | 		<transition name="precedent" to="parametrageProcessus"></transition>
  | 		<transition to="fin" name="annuler">
  | 			<action expression="#{processusCrud.annuler}" />
  | 		</transition>
  | 	</page>
  | 	<page name="fin" view-id="/processus/listeProcessus.xhtml">
  |    	  	<redirect/>
  | 	</page>
  | </pageflow-definition>

The pageflow is started with a @Begin annotaion:

@org.jboss.seam.annotations.Begin(pageflow = "processusCrud", join = true)
  | public java.lang.String select(mypackage.processus.VOProcessus processus)
  |     {}

And my select method is called this way ...

<s:button value="#{messages['label.nouveau']}" action="#{processusCrud.select(null)}" />

... or this way :

<h:commandButton id="cmdDetail" value="#{messages['label.detail']}" action="#{processusCrud.select(processus)}" />
  | 

The link in my template is :

<s:link view="/home.xhtml" value="Accueil" />

Is there anything more to do ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108560#4108560

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108560




More information about the jboss-user mailing list