Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Listener beforeshow on textfield

$
0
0

Good afternoun,

 

I have a question about dialog listeners.

 

I have this widget definition inside of my dialog:

 

     <vanity

            jcr:primaryType="cq:Widget"

            collapsed="{Boolean}true"

            collapsible="{Boolean}true"

            title="Vanity URL"

            xtype="dialogfieldset">

            <items jcr:primaryType="cq:WidgetCollection">

                <vanityPath

                    jcr:primaryType="cq:Widget"

                    cls="cq-propsdialog-vanityurl"

                    fieldLabel="Vanity URL"

                    xtype="textfield">

                    <listeners

                              jcr:primaryType="nt:unstructured"

                              loadcontent="function(field, record, path){VanityPath.loadPath(field);}"

                   beforeshow="function(field){VanityPath.loadPath(field)}"

                              beforestatesave="function(field, state){VanityPath.copyResult(field);}"/>

                </vanityPath>

                <vanityPathFinal

                    jcr:primaryType="cq:Widget"

                    name="./sling:vanityPath"

                    xtype="textfield"/>

                <vanityPathRedirect

                    jcr:primaryType="cq:Widget"

                    fieldLabel="Redirect Vanity URL"

                    name="./sling:redirect"

                    type="checkbox"

                    xtype="selection"/>

            </items>

        </vanity>

 

The beforeshow is not working and I cannot find what is the right definition.

 

Thank you for the help.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>