Hi,

A second question on dialog's. I have my logging working well with the
following dialogs:

<dialog name="Log On" start="Check Logged">
    <action name="Check Logged" method="#{logon.isLogged}">
      <transition outcome="not_logged" target="Authenticate"/>
      <transition outcome="logged" target="Exit"/>
    </action>
        <subdialog  name="Authenticate" dialogName="Authenticate User">
      <transition outcome="authenticated" target="Exit"/>
    </subdialog>
    <end name="Exit" viewId="/jsp/dashboard.jsp"/>
  </dialog>

  <!--this part is pulled from the logon process so that it can be called as
a subdialog in any process 
  started not logged-->

  <dialog name="Authenticate User" start="Logon Page">
        <view name="Logon Page" viewId="/logon.jsp">
                <transition outcome="authenticated" target="Exit"/>
        <transition outcome="unauthenticated" target="Logon Page"/>
                <transition outcome="discontinued_account" target="Logon
Page"/>
        </view>
    <end name="Exit"/>
  </dialog>

This works great if called from :

<h:form id="startLogon">
<h:commandLink action="dialog:Log On" value="test logon"/>
</h:form>

But when I access the /logon.jsf directly I would like this dialog to be
started automatically. How do I do this?

Thank you,
Joost

Reply via email to