Archive for April 2012

    Complex validation of CQ5 dialog fields using a custom Sling servlet

    April 16, 2012 4:12 AM

    Dialog fields in CQ5 occasionally require validation that cannot be handled with static constraints or regular expressions. However, this type of validation can be easily accomplished by delegating the validation function to a custom servlet. The implementation details and code samples below describe a viable solution for most validation scenarios.

    posted by Mark Daugherty

    Maintaining Visibility of CQ Editables

    April 10, 2012 4:43 PM

    Content elements such as multi-tab content controls and collapsible content sections are prevalent on modern websites.  In an Adobe CQ5 authoring environment, a common business requirement is to allow the authoring of such elements in place.  Such requirements necessitate the elements of the CQ authoring environment (edit bars, drop areas for paragraph systems, etc) to be hidden and shown as the content which they represent is hidden and shown.

    posted by Paul Michelotti

    Thoughts Concerning Serving Linked Data from Apache Sling

    April 2, 2012 2:13 PM

    Reviewing the JCR specification as well as some of the Apache Sling documentation, I caught a wiff of congruity between the functionality they exposed and the tenets of Linked Data as they are popularly defined in relation to the Semantic Web (listing 1). What struck me about this was that the congruity seemed inherent to JCR and Sling and was, from what I can tell, unintentional. Realization of this happy accident gave rise to the question of the ease with which Linked Data can be housed and served using Sling and JCR and the faculties built into each.

    posted by Paul Michelotti
Top