I know the exception pane stuff was a huge pain in the ass, it really should be a widget, but since this seems to not be supportable by the current Asset service just yet we'll have to get by. (It will be supported soon, just need my commit :) )

Are you saying that you will let the dojo library in tacos.jar file? That would be great if you do that!

I just commit that changes only on AjaxDirectLink , any feedback if appreciated.

- Felix

 

On 12/1/05, Felix Sun <[EMAIL PROTECTED]> wrote:
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, ;).


Reply via email to