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

2007-02-22 Thread flood
Hello Paul!

Thank you, this solved my problem.

Jan K.



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

2007-02-14 Thread Paul Spencer

Jan,

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

Paul Spencer

[EMAIL PROTECTED] 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

2007-02-14 Thread Rahul Akolkar

On 2/14/07, [EMAIL PROTECTED] [EMAIL PROTECTED] 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.