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 - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
