Solution for SQLException :Value ‘0000-00-00′ can not be represented as...
Problem The script throws SQLException :Value '0000-00-00' can not be represented as java.sql.Date Solution Solution for this problem is pretty simple. You just have to set the zeroDateTimeBehavior...
View ArticleCreate new Adobe CQ5/AEM user programmatically
Problem How to create new Adobe CQ5/AEM user programmatically? Solution We can use UserManager#createUser(String, String) to create new user programmatically. Here is example...
View ArticleCQ5 – Find, backup or replicate JDBC Connections and settings
Problem Where to find connections from JDBC Connection Pool in Adobe AEM/CQ5. Solution All connections are stored at /apps/system/config So if you want to replicate your connection to publish instance,...
View ArticleCQ5/AEM – Use DataSourcePool within OSGi bundle
Problem Can’t get access to DataSourcePool in OSGi bundle in Adobe AEM/CQ5. Solution In bundle activator you need to get and store the DataSourcePool and get it in your bundle classes via static...
View ArticleActivate Adobe AEM/CQ5 user programmatically
Problem I created AEM/CQ5 user but I need to disable/block his account until he validates his e-mail and enable/unblock it after that. Solution You can lock the account like this user.disable("Waiting...
View ArticleAdd Maven dependencies to AEM/CQ5 project in Eclipse
Problem Eclipse doesn’t see Maven dependencies in Maven based Adobe AEM/CQ5 projects and auto completion doesn’t work either. Solution Close Eclipse and run the following command from shell mvn...
View ArticleCreate dialog with checkbox in Adobe AEM/CQ5
Problem How to create component dialog in Adobe AEM/CQ5 that contains checkbox and how to obtain it’s value(determine if it is or is not checked). Solution Add this into you dialog.xml <prop1...
View ArticleChange default homepage for Adobe CQ5.6 Author
Problem In Adobe AEM/CQ 5.6 Author instance is new homepage with new touch-friendly interface. However, as developer I prefer the old one that lies on /welcome.html. So how can the homepage be changed?...
View Article