Hi Erik,

I *think* I understand the requirement, but could you do a quick sketch of
what you would like to see?

As per [1], the secondary menu bar is actually the right-aligned menu
items, whereas the tertiary menu is that with the user's logon name.

So, basically, do you want to change the label that show's the user's name?

If that's the case, what we could do is to define some sort of (optional)
UserProfileService that could provide this information to the framework.

Coincidentally, Oscar mentioned recently that it'd be nice for the tertiary
menu to include an avatar / photo for the currently logged-on user... eg as
shown in gmail and probably many others.  So that could be another piece of
informatoin that a UserProfileService provides.

Thoughts?
Dan


[1]
https://isis.apache.org/components/viewers/wicket/application-menu-layout.html



On 24 December 2014 at 14:08, Erik de Hair <[email protected]> wrote:

> Hi Martin,
>
> Sorry, I wasn't very clear about what I need...
>
> I already have the run as items in the menu and it does work. I want to
> inform the user that he's in 'run as' mode and show the 'running as'
> username. So I want to show this in the secondaryMenu after the username
> like for example:
>
> /erikdehair (as dummyusername)/
>
> instead of just
>
> /erikdehair/
>
> Thanks,
> Erik
>
> <mailto:[email protected]>
>
> On 12/24/2014 02:37 PM, Martin Grigorov wrote:
>
>> Hi,
>>
>> I am not sure I understand your question correctly but you can add "Run
>> as"
>> to the menu on the most right by using @DomainServiceLayout(menuBar =
>> MenuBar.TERTIARY). The domain service action should be named "runAs" and
>> additionally you may add "choicesRunAs()" method to select the user for
>> this action.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Wed, Dec 24, 2014 at 3:30 PM, Erik de Hair <[email protected]> wrote:
>>
>>  Hi,
>>>
>>> Is it possible to extend PageAbstract without building Isis from scratch
>>> myself? I added Run As functions to my app and I want to show both the
>>> username of the real user and the 'run as' user.
>>>
>>> Thanks,
>>> Erik
>>> <mailto:[email protected]>
>>>
>>>
>

Reply via email to