我正在为Oracle WebCenter开发一个自定义模板,它是在JDeveloper中从头创建的。我想要显示一个登录的用户头像(或个人资料照片)在模板的右上角。就像在数千页上做的一样。该怎么做呢?
在搜索和实验时,我发现webcenter中有ProfilePhotoServlet,它可以在WebCenter空间中显示用户照片。它应该可以工作( servlet在我的WebCenter应用程序中运行),但我需要以某种方式指定用户才能使其工作。
在webcenter空间中,它是这样的:
<img src="/webcenter/profilephoto/3039374139443130393142413131453042464632374433413541413746423930/SMALL/1319467188271?_xResourceMethod=wsrp" />用户的图片就会出现。我不知道如何获得ProfilePhotoServlet的那些数值参数。
发布于 2012-02-13 14:44:14
<af:image source="#{
webCenterProfile[(pageFlowScope.userId == null ? securityContext.userName : pageFlowScope.userId)]
.photoURI[not empty pageFlowScope.imageSize? pageFlowScope.imageSize : 'MEDIUM']
}" shortDesc="#{pageFlowScope.userId}" id="i22">
</af:image>https://stackoverflow.com/questions/7877785
复制相似问题