Quickly Delete a Node

One of my favorite things about AEM is how it really leverages the HTTP specification. This really comes in handy when you have a node buried deep in a large tree inside AEM which you want to delete, but the browser times out before CRX DELite can render the expanded folder. In such a case, …


Recompile JSPs with FSClassLoader

Sometimes, it becomes necessary to “flush” the compiled JSPs that AEM uses internally. In older versions of AEM, you could delete the CRX paths where the JSPs were stored and AEM would rebuild them on the first request. This changed in AEM 6.1, when the FSClassLoader was added. While in theory, you could go to …


AEM Spark: Disable and Enable Users

Sometimes, you might find yourself wanting to disable a user account in Adobe Experience Manager, while leaving the account itself intact. This is easy to do via curl: curl -vfs -u admin:admin http://localhost:4502/.rw.html -F “disableUser=Disabled via curl” This sets a protected property on the user node, called rep:disabled – as the term “protected property” suggests, …


AEM Spark: Post/Redirect/Get Pattern for HTML Forms

If you have an HTML form that modifies the node contents, you can add this HTML/HTL to make it refresh the page after the modification (P/R/G style):

If you have a better solution to this problem that you’d like to share, contact us at [email protected]