CQ5 widget with xtype 'hidden' not working
I am trying to add a hidden property (key-value pair) to a page using a 'hidden' xtype in the page properties. But the property always returns a null/blank
The widget code is as below.
<keyvaluecheck jcr:primaryType="cq:Widget" defaultValue="myValue" hidden="{Boolean}true" name="./myKey" value="myValue" xtype="hidden"/>The JSP code is as below: I should get "myValue" displayed but its blank. What may be wrong here ?
<%=currentPage.getProperties().get("myKey" , "") %>