How to reset page navigation component to render the content items from first page in IBM WCM

The problem When working with navigation components, it is common to share the same pagination in several menu or personalization components, however this introduces an issue because when clicking on the “Next” or “Previous” page the URL is going to have a parameter with the paging state which causes the problem of keeping the page…

How to detect user devices: smartphone, tablet or desktop in IBM WCM 8.5 using tags

The context: why should I need to know this stuff? In the last years front-end web development has became one of the most exciting areas of IT and software development, as front-end developers we have a tone of new tools, APIs, editors, packages, etc. that make our life easier. There is an area that is…

How to configure session factory to connect to a DB2 datasource with Hibernate

A really brief intro Hibernate is one of the most incredible Object Relational Mapper (ORM engine) that we have to make scalable and secure  Java Enterprise Applications. Today, I going to explain you, how to configure your session factory field by field in order to have a basic connection to a datasource (in this case…

How to allow publishing of JavaEE applications with “errors” in IBM Rational® Software Architect

The problem Sometimes, you are creating pieces of software with many tags in HTML, JavaScript or any other front-end language that IBM Rational® Software Architect doesn’t recognize, for example today I was publishing a theme for WebSphere Portal 8 and an error started to happen in the publishing operation, in a nutshell it was about my…

“IWKMU1026X: File not found” error when render WCM components or elements in IBM WCM 6 SOLVED

Today, I spent a lot of time trying to render an ImageComponent using the WCM 6 API, because when I used the method render() from the workspace this error was appearing: IWKMU1026X: File not found The thing is, almost all in the web point to a permission issue, but at the end my solution is…

Solving “The matching wildcard is strict, but no declaration can be found for element mvc:annotation-driven”

If you are using Spring to create an awesome enterprise application and you are a beginner like me this article is for you. Today when I was integrating new configurations to Spring MVC to an existing project an error appeared, this error was related with <mvc-anotation-driven /> annotation. At the beginning I thought it would…

How to solve the “Class has two properties of the same name” JAXB error (WebSphere Application Server)

Today, when I was creating a RESTful service in JavaEE for a dynamic web application to run in IBM® WebSphere  Application Server (WAS) an error like this was appearing: Class has two properties of the same name “userId” this problem is related to the following location: at public java.lang.String com.rest.model.UserProfile.getUserId() at com.rest.model.UserProfile this problem is…