HomeTroubleshooting Hub › Dialog issues

Dialog issues

Purpose: Fix dialogs that won't open, show missing fields, or don't persist values.

Who this page is for

AudienceWhy it matters to you
All engineersAuthor-facing breakage is high-visibility

Dialog won't open / spins

Browser dev-tools console first — dialog failures are usually a 500 on the dialog render or a JS error:

FindingCause
500 on _cq_dialog.html requestMalformed dialog XML — error.log names the offending node
JS error from a granite widgetBad/unknown sling:resourceType on a field, or a broken custom widget clientlib
Dialog opens empty.content.xml structure broken below the tab/items level (silently swallows children)

Validate structure against a known-good dialog (copy a Core Component's dialog XML shape — nesting of content/items/tabs/items/… is strict and unforgiving).

Fields missing

Values not saving / not appearing

CheckExplanation
name attribute on each field (./title)No name = no persistence; wrong prefix = wrong node
POST in dev-tools network tab on save200? The values are in the JCR — your HTL/model reads the wrong property
Multifield: composite + correct child namingRows saved flat vs child nodes mismatch with @ChildResource expectations (Lab 4/5)
Type hints (checkbox @TypeHint)Booleans saved as strings break typed injection
Author sees old values after saveOverlay/CDN caching author URLs (author must never be CDN-cached)

The "worked yesterday" case

Dialog changes deploy with code — diff the dialog XML in git; an innocent-looking reformat that reordered jcr:primaryType or dropped a namespace is the usual culprit (build failures for XML validity).

Quick navigation