Hi, I have upgrade my projects from 18.1.6 to 18.2.3. After the changes, the "My Details" menu at the upper right corner of the xaf web application never show.
I have try to create a fresh application from the template, choosing authentication AD and default permission "Allow/Deny".
Same problem, the menu "My detail" never show when hover the "My account" link.
Hello Sebastien,
Since the LogOff action is not available in the Active Directory authentication, only the My Details action is added to the Security Action Container (My Account menu). This Action Container is in DropDown mode. In this mode, the dropdown list is displayed only when there is more than one visible item. It is supposed that when there is a single item, it should be executed by a simple click on the root menu. However, this functionality does not work in the Security menu, since it has the DefaultItemCaption property specified. The combination of these factors (a single action, DropDown = "true" and DefaultItemCaption = "My Account") makes the My Account menu unclickable.
We will discuss the best way to fix this issue on our side. Currently, you can resolve it as follows:
- Set the IsDropDown property to false to display the My Details action;
- Remove the DefaultItemCaption and DefaultItemImageName attributes and set the DefaultActionID property to MyDetails to execute the MyDetails action when the My Account item is clicked:
<xaf:WebActionContainer IsDropDown="true" DropDownMenuItemCssClass="accountItem" ContainerId="Security" DefaultActionID="MyDetails" />
protected void Session_Start(Object sender, EventArgs e) { Tracing.Initialize(); WebApplication.SetInstance(Session, new Web181ADAuthAspNetApplication()); WebApplication.Instance.Settings.DefaultVerticalTemplateContentPath = "DefaultVerticalTemplateContent1.ascx"; DefaultVerticalTemplateContent1.ClearSizeLimit();
Thanks Anatol,
in either solution, the image beside "My Account" is not displayed anymore.
To fix it, I've done the following:
- set IsDropDown="false"
- Edit the MyDetails action in the model and set it PaintStyle to "CaptionAndImage".