Walter X Lee commented on Apr 25, 2013

Re: WCM Adding Categories to User Profile at runtime using DynamicMapper

Hi Chris,

Great article. Is this still the recommended approach with Portal/WCM 8 for retrieving content based on categories?

Thanks

Christopher M Knight commented on Jan 5, 2010

WCM Adding Categories to User Profile at runtime using DynamicMapper

The WCMGroupProcessor class doesn't have to be registered, WCM is looking for a specific class in the specific package when WCM starts. So if the class is in the classloader (for example if your .jar is in /WCMHOME/wcm/shared/app) then when the WP server starts the class will be available.

Eswara Panda commented on Dec 16, 2009

WCM Adding Categories to User Profile at runtime using DynamicMapper

Could you tell me how do we register WCMGroupProcessor class to get executed?Where do we do this?

Christopher Knight commented on Jun 30, 2009

....getAttribute("wcm_session_user") is not working in 6.1

Are you able to get the principal from the request in the traditional manner vs from a sesion attribute?

Alla Berman commented on Jun 25, 2009

....getAttribute("wcm_session_user") is not working in 6.1

Hi,

I used in WCM 6.0:

Principal userPrincipal = (Principal) request.getSession().getAttribute("wcm_session_user");

com.ibm.portal.puma.User pumauser = (com.ibm.portal.puma.User) userPrincipal;

to get pumauser.

In 6.1 this attribute "wcm_session_user" does not exist.(?)

Were you able to retrieve "wcm_session_user" from the session on 6.1????

Thank you.

My email: alla.berman@childrens.com

Christopher Knight commented on Dec 8, 2008

WCM Adding Categories to User Profile at runtime using DynamicMapper

Thats unfortunate, can you possibly post to the forums or open a PMR so that we can get all of your files?

Also, can you update the java code so that a System.out.println(""); is issued everytime the method gets called? That way, you can determine whether or not the issue is with the code within the method, or whether WCM is issuing the request to the method. It shouldn't be the latter, this generally works. There was an ifix early on in 6013, but since then no issues that I am aware of.

Carlos L Rivera commented on Dec 7, 2008

Not working

Hi I've tried using the sample dynamic mapper as-is and it doesn't work for me. I also tried your version of the dynamic mapper and it also doesn't work. I did notice that your version doesn't implement the HttpSessionAttributeListener and fixed that part but it still didn't work. Any other ideas?