You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by fl...@foni.net on 2007/02/14 13:51:26 UTC

Beginning a dialog (basic dialog manager) with V1.0.3

Hello !

When trying to begin a dialog with V1.0.3 (basic dialog manager) with the
"dialog:" prefix in an action, I get:

java.lang.IllegalArgumentException: You have requested a transition outcome
named "dialog:Dienststellensuche" from a state named "Dienststellenliste" in a
dialog named "Dienststellensuche", but no transition definition can be found. 
Double check the spelling of the transition outcome name.

Any hints?

jsp:
	    <h:commandLink id="logon" action="dialog:Dienststellensuche">
		<h:outputText value="start"/>
	    </h:commandLink>


dialog-config.xml:
<dialogs>
	<dialog name="Dienststellensuche" start="Suchparameter Form">
		<view name="Suchparameter Form" viewId="Dienststellensuche.jsp" >
			<transition outcome="suchen" target="Dienststellenliste" />
		</view>
		<view name="Dienststellenliste" viewId="Dienststellenliste.jsp" >
			<transition outcome="ok" target="Ende" />
		</view>
		<end name="Ende" />
	</dialog>
</dialogs>

Jan K.


Re: Beginning a dialog (basic dialog manager) with V1.0.3

Posted by Paul Spencer <pa...@apache.org>.
Jan,

Add a slash to the viewId.
  viewId="/Dienststellensuche.jsp"

Paul Spencer

flood@foni.net wrote:
> Hello !
> 
> When trying to begin a dialog with V1.0.3 (basic dialog manager) with the
> "dialog:" prefix in an action, I get:
> 
> java.lang.IllegalArgumentException: You have requested a transition outcome
> named "dialog:Dienststellensuche" from a state named "Dienststellenliste" in a
> dialog named "Dienststellensuche", but no transition definition can be found. 
> Double check the spelling of the transition outcome name.
> 
> Any hints?
> 
> jsp:
> 	    <h:commandLink id="logon" action="dialog:Dienststellensuche">
> 		<h:outputText value="start"/>
> 	    </h:commandLink>
> 
> 
> dialog-config.xml:
> <dialogs>
> 	<dialog name="Dienststellensuche" start="Suchparameter Form">
> 		<view name="Suchparameter Form" viewId="Dienststellensuche.jsp" >
> 			<transition outcome="suchen" target="Dienststellenliste" />
> 		</view>
> 		<view name="Dienststellenliste" viewId="Dienststellenliste.jsp" >
> 			<transition outcome="ok" target="Ende" />
> 		</view>
> 		<end name="Ende" />
> 	</dialog>
> </dialogs>
> 
> Jan K.
> 
> 


Re: Beginning a dialog (basic dialog manager) with V1.0.3

Posted by Rahul Akolkar <ra...@gmail.com>.
On 2/14/07, flood@foni.net <fl...@foni.net> wrote:
> Hello !
>
> When trying to begin a dialog with V1.0.3 (basic dialog manager) with the
> "dialog:" prefix in an action, I get:
>
> java.lang.IllegalArgumentException: You have requested a transition outcome
> named "dialog:Dienststellensuche" from a state named "Dienststellenliste" in a
> dialog named "Dienststellensuche", but no transition definition can be found.
> Double check the spelling of the transition outcome name.
>
> Any hints?
>
<snip/>

Seems to imply that a dialog is already in progress, which won't do.

As an aside, if possible, use v1.0.4. It has improvements in the
dialog manager space that are probably worth the upgrade. More on the
v1.0.4 dialog manager features is here [1].

-Rahul

[1] http://shale.apache.org/1.0.4/shale-dialog/index.html


> jsp:
>             <h:commandLink id="logon" action="dialog:Dienststellensuche">
>                 <h:outputText value="start"/>
>             </h:commandLink>
>
>
> dialog-config.xml:
> <dialogs>
>         <dialog name="Dienststellensuche" start="Suchparameter Form">
>                 <view name="Suchparameter Form" viewId="Dienststellensuche.jsp" >
>                         <transition outcome="suchen" target="Dienststellenliste" />
>                 </view>
>                 <view name="Dienststellenliste" viewId="Dienststellenliste.jsp" >
>                         <transition outcome="ok" target="Ende" />
>                 </view>
>                 <end name="Ende" />
>         </dialog>
> </dialogs>
>
> Jan K.
>
>