cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation from dialogs to dialogs

webdesigner
Champ in-the-making
Champ in-the-making
Hi all,

How can I navigate from one custom dialog to another custom dialog?

If I'm using <navigation-rule> /<navigation-case> it's only possible to forward to JSP's. But I need to forward to another custom dialog!

Here my dialog and configuration:
1. web-client-config-custom.xml

   <config>
         <dialogs>    
            <dialog name="showNotificationDetails" page="/jsp/extension/spaces/notification-details.jsp"
            managed-bean="NotificationDialog"
                    icon="/images/icons/details_large.gif" title-id="notification_details"
                    description-id="notification_details_description"/>
            <dialog name="showNotificationSentView" page="/jsp/extension/spaces/notification-sent.jsp"
            managed-bean="NotificationDialog"
                    title-id="notification_sent"
                    description-id="notification_sent_description"/>
        </dialogs>
  </config>


2. faces-config-navigation.xml


<navigation-case>
         <from-outcome>notification_sent</from-outcome>
        <to-view-id>/jsp/extension/spaces/notification-sent.jsp</to-view-id>
      </navigation-case>


The forward to /jsp/extension/spaces/notification-sent.jsp is working fine, but than ONLY a JSP content is displayed without any Alfresco UI-elements like: Navigator menu, Logout action, search input fiel etc.

I need to display JSP content (of /jsp/extension/spaces/notification-sent.jsp) inside of alfresco UI.
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
The <navigation-case> configuration is only meant for 'full' JSP pages, it is not designed to work with dialogs.

To get the full UI you will need to copy an existing 'full' JSP, browse.jsp or document-details.jsp are 2 that spring to mind, copy them and replace the body of the page with your UI.

However, I suspect what you are trying to achieve is possible another way. If you just want to open the "showNotificationSentView" dialog from the "showNotificationDetails" just return an outcome of "dialog:showNotificationSentView" from the finishImpl() method of your details dialog.

You shouldn't need to use the <navigation-case> configuration at all.

webdesigner
Champ in-the-making
Champ in-the-making
The <navigation-case> configuration is only meant for 'full' JSP pages, it is not designed to work with dialogs.

To get the full UI you will need to copy an existing 'full' JSP, browse.jsp or document-details.jsp are 2 that spring to mind, copy them and replace the body of the page with your UI.

However, I suspect what you are trying to achieve is possible another way. If you just want to open the "showNotificationSentView" dialog from the "showNotificationDetails" just return an outcome of "dialog:showNotificationSentView" from the finishImpl() method of your details dialog.

You shouldn't need to use the <navigation-case> configuration at all.

Thanks,

dialog:showNotificationSentView is exact what I'am searching for!

red
Champ in-the-making
Champ in-the-making
I've a question and i hope you can answer me. How can I implement an action in a Dialog that forwards to another dialog?
What i need to do is to give to the user the possibility to modify an object retrieved in the first dialog, using the second one.

My idea is to add the data that i need to modify in the HttpRequest using the FacesContext, and then proccess it in the forwarded dialog.

Can anyone help me?!