Showing posts with label spaces. Show all posts
Showing posts with label spaces. Show all posts

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

Monday, April 23, 2012

Unable to open the General WebCenter Spaces Administration Page

IF you create new admin user into WebLogic Server and try to login into the WebCenter Spaces Administration Page you will realize that you will be not able to do it.

image

Basically such a problem comes when the default weblogic account is replaced by new one admin account but only giving the new account Administrative Proviliges in WebLogic Server will be not enough. If you have similar issue check to see if you may have the same misconfiguration. So here the steps how to fix the problem:

  • Login into Enterprise Manager and then go to the WebCenter Spaces project and click on it

image

  • From the drop-down configuration menu select Security->Application Roles

image

  • You have to see screen like the one bellow. Note the Member which are allow to see the Default WebCenter Administration.

image

  • In my case, my admin user was not inside the members list, so I had to add it. For that reason select the very first Role Name #Administator and click on Edit button:

image

  • From the new window you can add new users, which will be able to access the administration.

Now you can go to the General WebCenter Administration Page by using the URL:

http://host:port/webcenter/spaces/admin

Wednesday, April 18, 2012

Generic links for WebCenter Spaces

In most of the tutorials you normally do some step by step examples and mostly you have use absolute links like this one:

http://<host name>:<port number>/webcenter/spaces/<name of the Space or Subspace>/admin

All good, until you move this to another environment or change to HTTPS for example. How about using some expressions and do this generic. For example using the navigation rules into WebCenter Spaces you can do something like this:


image


Basically very easy, this will generate your URL, so you do not have to worry of any static URL’s anymore. In this example I wanted to create a link which always sends me to the administration of the current spaces.