I am trying to add popup parameter to AjaxDirectLink sort of components.
that would popup the updated component in a FloatingPane after ajax response. just when doing the effects thing.

It is simple to implement because of the previous lots of work for showing exception pane.
and is nice I think that AjaxDirectLink/AjaxSubmit/AjaxLinkSubmit have this feature to to all kinds of popup stuff.
The implementation in my local works great. I just add a link in Editor demo page to let an Editor show in popup pane.

the usage would be:

Editor.html
    <div style="display:none;">
        <div jwcid="[EMAIL PROTECTED]" id="editor">
            <div jwcid="editHtmlForPopup">Editable content</div>
        </div>
    </div>
    <a jwcid="popupLink">Show Popup Editor</a>

Editor.page
    <component id="popupLink" type="tacos:AjaxDirectLink">
        <binding name="listener" value="listener:loadInitialData"/>
        <binding name="updateComponents"
            value="ognl:{'editor'}"/>

        <binding name="popup" >
            literal:{
                title:"Editor",
                widgetId:"editor",
                constrainToContainer:"1",
                toggle:'fade',
                resizable:true,
                persistenceWidgetPosition: true,
                contentNodeId:'editor'

            }
        </binding>
        <binding name="statusElement" value="literal:status" />

    </component>

that's all for a popup show.

I will commit it if you guys think it is good. or commit that after the alpha-7 release if you guys can wait, ;).

Attachment: popup.gif
Description: GIF image

Reply via email to