Monday, April 30, 2012

Generic links for WebCenter–event better

I had a post last week, talking about how to create generic links in WebCenter Spaces, you can read HERE. There is actually even more easier way to generate the link without to use the all request variables by just using this:

#{facesContext.externalContext.requestContextPath}/spaces/#{spaceContext.currentSpaceName}

You can use this also on every ADF page, for example to generate URL for the ADF GoLink Component:



<c:set var="contextRoot" value="${facesContext.externalContext.requestContextPath}" scope="request"/>
<af:goLink id="home" destination="/#{contextRoot}/spaces/#{spaceContext.currentSpaceName}" >

 


cheers

No comments:

Post a Comment