On 6/6/06, Greg Allen <[EMAIL PROTECTED]> wrote:

I am having some problems with the shale dialogs.  I have defined my
dialogs (correctly, I believe) in the dialog-config.xml as follows:



<dialogs>

  <dialog name="Log in" start="login">

    <action name="login" method="#{account$login.login}">

      <transition outcome="authenticated" target="Exit"/>

      <transition outcome="unauthenticated" target="Login Form"/>

    </action>

    <view name="Login Form" viewId="/tiles/Login.jsp">

      <transition outcome="authenticated" target="Exit"/>

    </view>

    <end name="Exit" viewId="/tiles/Homepage.jsp"/>

  </dialog>

</dialogs>



However, when I successfully authenticate I don't end up on my
home page, but remain on the login page.  I found this in the log file:



DEBUG http-8080-Processor24
org.apache.shale.dialog.faces.DialogNavigationHandler -
handleNavigation(viewId=/tiles/Login.jsp,fromAction=#{account$login.logi
n},outcome=authenticated)

DEBUG http-8080-Processor24
org.apache.myfaces.application.NavigationHandlerImpl - handleNavigation
fromAction=#{account$login.login} outcome=authenticated no matching
navigation-case found, staying on current ViewRoot

DEBUG http-8080-Processor24
org.apache.shale.view.faces.ViewPhaseListener -
afterPhase([EMAIL PROTECTED]
0aa1,INVOKE_APPLICATION(5))



Why is no matching case found?  It seems like it should be.


That's really odd ... the "no matching navigation cases" is coming from the
MyFaces navigation handler implementation ... but, if you are within a
dialog, Shale should never have delegated to the default one in the first
place.  Are you sure that you correctly entered the dialog (by returning an
outcome string of "dialog:Log in" from some action that was outside of a
dialog?

Thanks,



*       Greg

*


Craig

Reply via email to