You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rakesh Kumar Cherukuri <ra...@gmail.com> on 2005/12/01 20:23:16 UTC

Urgent help needed. - Jetspeed 1.5

Hi all,

My requirement is : I have to put if-elseconditions in* .vm* files depending
on the RoleName of user logged in

 i tried to display $jslink.RoleName value. This is getting displayed as
$jslink.RoleName. Basically the value is not getting replaced.

However i am able to get $jslink.UserName() and $jslink.PageName but
*not*$jslink.RoleName.
So how to get value of role name ?

Thanks in advance for any solurion/suggestion

--
Rakesh Kumar Cherukuri

Re: Urgent help needed. - Jetspeed 1.5

Posted by Raphaël Luta <ra...@apache.org>.
Rakesh Kumar Cherukuri wrote:
> Hi all,
> 
> My requirement is : I have to put if-elseconditions in* .vm* files depending
> on the RoleName of user logged in
> 
>  i tried to display $jslink.RoleName value. This is getting displayed as
> $jslink.RoleName. Basically the value is not getting replaced.
> 
> However i am able to get $jslink.UserName() and $jslink.PageName but
> *not*$jslink.RoleName.
> So how to get value of role name ?
> 

$jslink.RoleName should work as expected (you can also use $jslonk.getRoleName()
is you want).

If the velocity statement is written instead of the value it's probably because
of a syntax error in your velocity templates and/or a null return value for
$jslink.getRoleName().

Check out your velocity.log log files for more info.

-- 
Raphaël Luta - raphael@apache.org
Apache Portals - Enterprise Portal in Java
http://portals.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org