Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23355

Seam Bean cannot be resolved in home action with using main_tab type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 8.10-HF15
    • Fix Version/s: None
    • Component/s: Seam / JSF UI

      Description

      Trying to override the default home action leads to weird behaviour. A bean can be resolved using all types but main_tab.

      The default implementation:

      <action id="home" link="view_home" label="fake.label.main.tab.home" 
              order="20" enabled="true" type="main_tab">
            <category>MAIN_TABS</category>
            <filter-id>not_transient_user</filter-id>
      </action>
      

      trying to override with:

      <action id="home" link="#{action.navigateTo()}" label="fake.label.main.tab.home" 
              order="20" enabled="true" type="main_tab">
            <category>MAIN_TABS</category>
            <filter-id>not_transient_user</filter-id>
      </action>
      

      The bean:

      @Name("action")
      @Scope(ScopeType.CONVERSATION)
      public class CustomDashboardActions {
      
          private static final long serialVersionUID = 1L;
          
          @In(create = true)
          protected transient WebActionsBean webActions;
      
          public String navigateTo() {
              webActions.setCurrentTabIds("MAIN_TABS:home,USER_CENTER:Dashboard");
              return "view_home";
          }
      }
      

      There is no error or anything. The action just returns a wrong/unresolved path, like

      localhost:8080/nuxeo/nxdoc/#{action.navigateTo()}

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m