Nuxeo Add-Ons

HOWTO: Customize Startup Redirection - JSF UI

This page is scheduled for review and update. Check back soon for updated content!

JSF UI Deprecation
This requires to have the JSF UI addon installed on your server that is deprecated since Nuxeo Platform LTS 2019.
Please refer to the Web UI documentation.

After connection, the startup page is defined by the method StartupHelper.initDomainAndFindStartupPage. If you want to customize the startup redirection, you have to override the method initDomainAndFindStartupPage in a custom class.

The following example presents a customization redirecting every user to the dashboard except for the Administrators:

@Name("startupHelper")
@Scope(SESSION)
@Install(precedence=DEPLOYMENT)
public class CustomStartupHelper extends StartupHelper {

    private static final long serialVersionUID = 1L;

    @Override
    @Begin(id = "#{conversationIdGenerator.nextMainConversationId}", join = true)
    public String initDomainAndFindStartupPage(String domainTitle, String viewId) {
        String result = super.initDomainAndFindStartupPage(domainTitle, viewId);
        if (((NuxeoPrincipal) documentManager.getPrincipal()).isAdministrator()) {
            return result;
        } else {
            return dashboardNavigationHelper.navigateToDashboard();
        }
    }
}

The method initDomainAndFindStartupPage must return an existing view id. For example, the following view id can be used to customize the redirection:

  • view_servers to access the list of available servers
  • view_home to access the dashboard of the current user
  • view_domains to access the list of domains
  • search to access the search page
23 days ago manonlumeau Relocate JSF UI Framework section
23 days ago manonlumeau Move JSF UI Framework under JSF UI addon
3 years ago Solen Guitter 9 | pdate how-to topic
4 years ago Manon Lumeau 8
4 years ago Gildas Lefevre 7
4 years ago Manon Lumeau 6
4 years ago Solen Guitter 5
4 years ago Gildas Lefevre 4
4 years ago Gildas Lefevre 3
4 years ago Gildas Lefevre 2
4 years ago Gildas Lefevre 1
History: Created by Gildas Lefevre

We'd love to hear your thoughts!

All fields required