-
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
-
Tags:
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()}