[ 
https://issues.apache.org/jira/browse/TAP5-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrej Aschenbrenner updated TAP5-558:
--------------------------------------

    Attachment: Dialog-Mixin-src.tar.gz

I have attached a working dialog mixin which I have written. Perhaps you could 
use it as an inspiration how a dialog could be written.
Usage is very simple. You attach it to an EventLink:

    /**
     * Link to open the dialog.
     */
    @SuppressWarnings("unused")
    @Component(parameters = { "event=literal:showSelection",
                                                          
"dialogTitle=literal:Person Selection", "dialogListenZone=literal:dialogZone",
                                                          
"dialogCloseTitle=literal:close me" })
    @MixinClasses({ Dialog.class })
    private EventLink openDialog;

The content for the dialog will be fetched per AJAX request when the dialog 
opens
using the EventLink href attribute. The EventLink will request the given event 
on the page/component:

    /**
     * Show the selection.
     *
     * @return selection zone.
     */
    @OnEvent(value = "showSelection")
    public final Object onShowDialog() {
        selectionHasChanged = false;
        return personSelection;
    }


> Create modal dialog component
> -----------------------------
>
>                 Key: TAP5-558
>                 URL: https://issues.apache.org/jira/browse/TAP5-558
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Ville Virtanen
>            Assignee: Ulrich Stärk
>         Attachments: Dialog-Mixin-src.tar.gz
>
>
> Tapestry's AJAX support is missing one important component, modal (or 
> non-modal) dialog. Dialog could be created with 
> http://www.wildbit.com/labs/modalbox/ or http://roland.devarea.nl/dialog/ or 
> http://github.com/robhurring/prototype-dialog/ or 
> http://livepipe.net/control/window
> After quick look first one looks like most professional.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to