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]


AEM Spark: OSGi Bundle States

In our AEM Spark on CRX DELite, we shared the JSON response of stopping and starting bundles via cURL. If you’re anything like me, you probably wondered what those values actually signified. Well, wonder no more-lifted directly from the OSGi Documentation, here’s a breakdown of the bundle states, and their associated values. An OSGi bundle …


AEM Sparks: CSRF Framework ClientLib

Starting with Adobe Experience Manager 6.1, there’s a new Cross-Site Request Forgery framework baked into AEM; you may have noticed this when your POST requests started getting rejected. There’s a simple way to make sure your form includes the correct code so that it can obtain a CSRF token. Just use the following in your …


AEM Spark: Replicate a Node

This is a new series that covers things you might already know about Adobe Experience Manager, but perhaps have forgotten – or just need a good Google Search for. Our first entry discusses how to replicate a node from AEM. Adobe Experience Manager is a very deep product. If you don’t live and breathe it …