cancel
Showing results for 
Search instead for 
Did you mean: 

#{r.creator}

mailvidi
Champ in-the-making
Champ in-the-making
Hi all,

Can we get the first name & the last name from r.creator that's been used in the forum  :? or from NavigationBean.currentUser ?

Regards,
Vidi
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
You should just be able to do the following:

#{r.firstName} or #{r.lastName}

mailvidi
Champ in-the-making
Champ in-the-making
Hi gavinc,

I tried r.firstName & r.lastName … but it does not seem to work  Smiley Sad  … wel, my requirement is that when someone starts a discussion, their login name gets displayed along with their post, instead of this i want their first & last names to be displayed.

Similarly, next to the log out link, the login name is displayed, in our case since the login names are employee numbers, we want their names to be displayed.

Any help is highly appreciated.

Regards,
Vidi

gavinc
Champ in-the-making
Champ in-the-making
OK, given the context of what you're trying to do, yes i can see that wouldn't work. Both your questions are going to involve a little customisation.

ForumsBean is used for the forums/discussions capabilities, getNodes() is where the nodes are built up, to make the full name of the poster available you will need to create a "propertyresolver" which can be used to provide additional properties to the JSP. Have a look at the examples present for how to implement one.

As for the user name by the login link, you could accomplish this by creating a new managed bean and providing a getter for the current user full name. You can then reference your bean in /jsp/parts/titlebar.jsp instead of the current "NavigationBean.currentUser.userName".

Hope this helps.

mailvidi
Champ in-the-making
Champ in-the-making
Hey gavinc,

Thanks much for your time !! Will try this and let you know if it worked …

Regards,
Vidi
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.