You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2007/10/15 15:48:45 UTC
Updating Dialog in AJAX requests
Hi,
Does anybody has an idea why the content of such dialog boxes is not refreshed when the form in the dialog box is submitted ?
Case 1 :
<div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
<form jwcid="signonForm@Form" async="true" updateComponents="{'signonDialog'}" success=listener:attemptLogin">
...
</form>
</div>
Case 2 :
<div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
<div id="signonBloc">
<form jwcid="signonForm@Form" async="true" updateComponents="{'signonBloc'}" success=listener:attemptLogin">
...
</form>
</div>
</div>
Case 3 :
<div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
<form jwcid="signonForm@Form" async="true" updateComponents="{'signonForm'}" success=listener:attemptLogin">
...
</form>
</div>
I have read the Tapestry Dojo Dialog component documentation and watched out for the gotchas but i can't find a way to refresh my Dialog box on submit ...
Thanks in advance for any help.
Stephane
Re: Updating Dialog in AJAX requests
Posted by Christian Dutaret <cd...@gmail.com>.
Sorry, mistakenly hit "Reply to all" and sent you the email to your address
too...
2007/10/16, Christian Dutaret <cd...@gmail.com>:
>
> I have something similar to your case 2, except that instead of :
> <div id="signonBlock">
> I have :
> <div jwcid="signonBlok@Any">
> (the updateComponents attribute refers to components, not element id)
>
> And it works fine for me
>
> HTH
> Ch.
>
> 2007/10/15, Stephane Decleire <sd...@cariboo-networks.com>:
> >
> > Hi,
> >
> > Does anybody has an idea why the content of such dialog boxes is not
> > refreshed when the form in the dialog box is submitted ?
> >
> > Case 1 :
> >
> > <div jwcid="signonDialog@Dialog" hidden="ognl:true"
> > style="display:none;">
> > <form jwcid="signonForm@Form" async="true"
> > updateComponents="{'signonDialog'}" success=listener:attemptLogin">
> > ...
> > </form>
> > </div>
> >
> > Case 2 :
> >
> > <div jwcid="signonDialog@Dialog" hidden="ognl:true"
> > style="display:none;">
> > <div id="signonBloc">
> > <form jwcid="signonForm@Form" async="true"
> > updateComponents="{'signonBloc'}" success=listener:attemptLogin">
> > ...
> > </form>
> > </div>
> > </div>
> >
> > Case 3 :
> >
> > <div jwcid="signonDialog@Dialog" hidden="ognl:true"
> > style="display:none;">
> > <form jwcid=" signonForm@Form" async="true"
> > updateComponents="{'signonForm'}" success=listener:attemptLogin">
> > ...
> > </form>
> > </div>
> >
> > I have read the Tapestry Dojo Dialog component documentation and watched
> > out for the gotchas but i can't find a way to refresh my Dialog box on
> > submit ...
> >
> > Thanks in advance for any help.
> >
> > Stephane
> >
> >
>
Re: Updating Dialog in AJAX requests
Posted by Christian Dutaret <cd...@gmail.com>.
I have something similar to your case 2, except that instead of :
<div id="signonBlock">
I have :
<div jwcid="signonBlok@Any">
(the updateComponents attribute refers to components, not element id)
And it works fine for me
HTH
Ch.
2007/10/15, Stephane Decleire <sd...@cariboo-networks.com>:
>
> Hi,
>
> Does anybody has an idea why the content of such dialog boxes is not
> refreshed when the form in the dialog box is submitted ?
>
> Case 1 :
>
> <div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
> <form jwcid="signonForm@Form" async="true"
> updateComponents="{'signonDialog'}" success=listener:attemptLogin">
> ...
> </form>
> </div>
>
> Case 2 :
>
> <div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
> <div id="signonBloc">
> <form jwcid="signonForm@Form" async="true"
> updateComponents="{'signonBloc'}" success=listener:attemptLogin">
> ...
> </form>
> </div>
> </div>
>
> Case 3 :
>
> <div jwcid="signonDialog@Dialog" hidden="ognl:true" style="display:none;">
> <form jwcid="signonForm@Form" async="true"
> updateComponents="{'signonForm'}" success=listener:attemptLogin">
> ...
> </form>
> </div>
>
> I have read the Tapestry Dojo Dialog component documentation and watched
> out for the gotchas but i can't find a way to refresh my Dialog box on
> submit ...
>
> Thanks in advance for any help.
>
> Stephane
>
>