Quantcast
Channel: Adobe AEM CQ tips » AEM/CQ5
Browsing latest articles
Browse All 8 View Live

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 Article


Create 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 Article


CQ5 – 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 Article

CQ5/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 Article

Activate 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 Article


Add 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 Article

Create 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 Article

Change 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

Browsing latest articles
Browse All 8 View Live