[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: AW: switch Modal Box
From:       Lance Java <lance.java () googlemail ! com>
Date:       2013-11-28 9:55:45
Message-ID: CAN7Z0vQabL_N_Pppw01o_GTjLawQNXe0mVKaErSURJ=1sKkcAw () mail ! gmail ! com
[Download RAW message or body]


Create a page for your pdf that can return a StreamResponse from
onActivate(...).  If the pdf can't be rendered, you show an error.

You can either pagelink to the pdf page or return an instance of the pdf
page in onSuccess() from a form on another page.

 On 27 Nov 2013 18:53, "Vasili Petrenko" <vasili.petrenko@devintime.de>
wrote:

> I can not return a zone on submit event. To return a zone you need a ajax
> request. Or? (Maybe code example)
> By ajax submit you can not return a StreamResponse.
>
> And if it work how can i bring up the jquery modal box?
>
> -----Urspr=FCngliche Nachricht-----
> Von: Barry Books [mailto:trsvax@gmail.com]
> Gesendet: Mittwoch, 27. November 2013 16:41
> An: Tapestry users
> Betreff: Re: switch Modal Box
>
> I would use an event link. From the event handler you should be able to
> return a StreamResponse (which could be the PDF) or a Zone which would
> bring
> up the Modal.
>
>
> On Wed, Nov 27, 2013 at 8:52 AM, Vasili Petrenko <
> vasili.petrenko@devintime.de> wrote:
>
> > Scenario:
> >
> >
> > Someone clicks on the actionlink and want to download a PDF. But if
> > there is no data, I want show a Modal Box and offer a further
> > suggestion.
> >
> > If data exists then download the PDF file.
> >
> > How can I do that?
> > I am new on Tepastry.
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic