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/06/07 18:16:44 UTC

Refreshing a dojo Dialog on submit

Hi,

I've got a signon form in a dojo Dialog box.
Is there a way to refresh the content of the Dialog box in order to show 
authentication errors when the submit button is fired ?

Thanks in advance.

Stephane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Refreshing a dojo Dialog on submit

Posted by Igor Drobiazko <ig...@gmail.com>.
Look here: this page contains 3 different dialogs
http://bookie.googlecode.com/svn/trunk/bookie-web/src/main/java/org/bookie/web/pages/admin/CategoryAdmin.java
http://bookie.googlecode.com/svn/trunk/bookie-web/src/main/webapp/WEB-INF/admin/CategoryAdmin.page
http://bookie.googlecode.com/svn/trunk/bookie-web/src/main/webapp/admin/CategoryAdmin.html

On 6/8/07, Stephane Decleire <sd...@cariboo-networks.com> wrote:
>
> My submit is async but nothing happens.
> I've tried to force the refresh with
> cycle.getResponseBuilder().updateComponent(getClientId());
> Same result ... The component is not refreshed.
>
> Any idea ?
>
> Stephane
>
> Christian Dutaret a écrit :
> > If your submit is async, just specify your form component id (or any
> > component you want refreshed on submit) in the updateComponents
> > attribute of
> > the @Form.
> >
> > 2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
> >>
> >> Hi,
> >>
> >> I've got a signon form in a dojo Dialog box.
> >> Is there a way to refresh the content of the Dialog box in order to
> show
> >> authentication errors when the submit button is fired ?
> >>
> >> Thanks in advance.
> >>
> >> Stephane
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Refreshing a dojo Dialog on submit

Posted by Christian Dutaret <cd...@gmail.com>.
>I had issues with refreshing the content of a Dialog through XHR requests
I mean with 4.1.1

2007/6/8, Christian Dutaret <cd...@gmail.com>:
>
> What version are you using? I had issues with refreshing the content of a
> Dialog through XHR requests. That's actually what motivated the move to
> 4.1.2
>
> 2007/6/8, Stephane Decleire < sdecleire@cariboo-networks.com>:
> >
> > My submit is async but nothing happens.
> > I've tried to force the refresh with
> > cycle.getResponseBuilder().updateComponent(getClientId());
> > Same result ... The component is not refreshed.
> >
> > Any idea ?
> >
> > Stephane
> >
> > Christian Dutaret a écrit :
> > > If your submit is async, just specify your form component id (or any
> > > component you want refreshed on submit) in the updateComponents
> > > attribute of
> > > the @Form.
> > >
> > > 2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
> > >>
> > >> Hi,
> > >>
> > >> I've got a signon form in a dojo Dialog box.
> > >> Is there a way to refresh the content of the Dialog box in order to
> > show
> > >> authentication errors when the submit button is fired ?
> > >>
> > >> Thanks in advance.
> > >>
> > >> Stephane
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: Refreshing a dojo Dialog on submit

Posted by Heping Zhang <ph...@gmail.com>.
do you resolve the problem? I think you can try to update the entire dialog
box component, not only the if component, or something like this, contains
the error message. I don't know whether it will work in your project, but I
when encounter this problem, I tried this and it works.

Re: Refreshing a dojo Dialog on submit

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
We are using Tap4.1.1

Christian Dutaret a écrit :
> What version are you using? I had issues with refreshing the content of a
> Dialog through XHR requests. That's actually what motivated the move to
> 4.1.2
>
> 2007/6/8, Stephane Decleire <sd...@cariboo-networks.com>:
>>
>> My submit is async but nothing happens.
>> I've tried to force the refresh with
>> cycle.getResponseBuilder().updateComponent(getClientId());
>> Same result ... The component is not refreshed.
>>
>> Any idea ?
>>
>> Stephane
>>
>> Christian Dutaret a écrit :
>> > If your submit is async, just specify your form component id (or any
>> > component you want refreshed on submit) in the updateComponents
>> > attribute of
>> > the @Form.
>> >
>> > 2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
>> >>
>> >> Hi,
>> >>
>> >> I've got a signon form in a dojo Dialog box.
>> >> Is there a way to refresh the content of the Dialog box in order to
>> show
>> >> authentication errors when the submit button is fired ?
>> >>
>> >> Thanks in advance.
>> >>
>> >> Stephane
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Refreshing a dojo Dialog on submit

Posted by Christian Dutaret <cd...@gmail.com>.
What version are you using? I had issues with refreshing the content of a
Dialog through XHR requests. That's actually what motivated the move to
4.1.2

2007/6/8, Stephane Decleire <sd...@cariboo-networks.com>:
>
> My submit is async but nothing happens.
> I've tried to force the refresh with
> cycle.getResponseBuilder().updateComponent(getClientId());
> Same result ... The component is not refreshed.
>
> Any idea ?
>
> Stephane
>
> Christian Dutaret a écrit :
> > If your submit is async, just specify your form component id (or any
> > component you want refreshed on submit) in the updateComponents
> > attribute of
> > the @Form.
> >
> > 2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
> >>
> >> Hi,
> >>
> >> I've got a signon form in a dojo Dialog box.
> >> Is there a way to refresh the content of the Dialog box in order to
> show
> >> authentication errors when the submit button is fired ?
> >>
> >> Thanks in advance.
> >>
> >> Stephane
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Refreshing a dojo Dialog on submit

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
My submit is async but nothing happens.
I've tried to force the refresh with
cycle.getResponseBuilder().updateComponent(getClientId());
Same result ... The component is not refreshed.

Any idea ?

Stephane

Christian Dutaret a écrit :
> If your submit is async, just specify your form component id (or any
> component you want refreshed on submit) in the updateComponents 
> attribute of
> the @Form.
>
> 2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
>>
>> Hi,
>>
>> I've got a signon form in a dojo Dialog box.
>> Is there a way to refresh the content of the Dialog box in order to show
>> authentication errors when the submit button is fired ?
>>
>> Thanks in advance.
>>
>> Stephane
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Refreshing a dojo Dialog on submit

Posted by Christian Dutaret <cd...@gmail.com>.
If your submit is async, just specify your form component id (or any
component you want refreshed on submit) in the updateComponents attribute of
the @Form.

2007/6/7, Stephane Decleire <sd...@cariboo-networks.com>:
>
> Hi,
>
> I've got a signon form in a dojo Dialog box.
> Is there a way to refresh the content of the Dialog box in order to show
> authentication errors when the submit button is fired ?
>
> Thanks in advance.
>
> Stephane
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>