Hi All!

I am trying to solve next task:
I need to compare login of current user (current session login) and login
of user which is stored in the object, which is added to the page.

To get first value i use next function:
xwiki.getUserName(xcontext.getUser(), false)
it is working good!

to store second value i have created object ( which is linked to page) and
added property "List of users" into it.
I can input username into this object, but i cannot get back it.
i try to get it via ${xwiki.getUserName(MyObject.display("ApproverList",
"view"), true)
but it doesn't work ( it returns link to the user profile image)
i have tried other but they don't work too.


Can somebody help me and explain, how to get user name from this object?
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to