I think this is an awesome feature ! :) I don't know if everyone's noticed, but Felix has been doing a really kick-ass job on stuff lately. Lot's of activity on the wiki showing his changes and such. Anyways, good work! :)

In regard to the Editor. I don't think I feel comfortable even having the demo page enabled for it, let alone release the component. It's far from working properly, but still a very good start.

I think the change sounds nice in general though :)

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 :) )

jesse

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