you could als set via javascript the input components you need and then call
dojo.byId('idsubmit').click(); to take advantage of the ajax features.

ciao,
kiuma

On 8/2/07, Malin Ljungh <[EMAIL PROTECTED]> wrote:
>
> Igor:
> Thanks! Works better now :-)  It's not beautiful but it works!
>
> Peter:
> Thanks for your reply. I use validators and async=true and this is the
> whole
> point... it's in case of valid input I need to reload the whole page, due
> to
> logged in view is so different from anonymous view so async="true" and
> updateComponents is not appropriate anymore.
>
> Malin
>
>
>
> On 8/2/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote:
> >
> > Malin
> >
> > There are so many scenarios I can think of, which depend very much on
> > how you app is constructed, without a good understanding of which makes
> > answering your question correctly a shot in the dark.
> >
> > I find the best place to validate is before the page render so you wont
> > need a reload afterwards... if you implement the pageValidate interface
> > (PageValidateListener) you can do this. There are also Tapestry
> > components that allow you to refresh portions of pages, after all thats
> > what AJAX is for: <input type="submit" jwcid="@Submit" async="true"
> > value="Submit"
> >
> >
> updateComponents="ognl:{'refresh_component1','refresh_component1','error_log_refresh','image_refresh'}"/>
> >
> > Peter
> >
> >
> > Malin Ljungh wrote:
> > > No one had this issue?
> > > Must be the most common scenario I figure...
> > >
> > > *puff*
> > >
> > >
> > > On 8/1/07, Malin Ljungh <[EMAIL PROTECTED]> wrote:
> > >
> > >> Thanks Andrea - it works! ... well, almost anyway :)
> > >>
> > >> If the page is reached through a post I will get the POSTDATA confirm
> > >> dialog... :'(
> > >>
> > >> Malin
> > >>
> > >>
> > >> On 8/1/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> > >>
> > >>> if login succeeds just write a conditional js that refresh the page
> > >>>
> > >>>
> > >>> On 8/1/07, Malin Ljungh <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>> I've created a login component to add to my pages.
> > >>>>
> > >>>> If validation fails I'd like to use async="true" to display
> > validation
> > >>>> messages - works fine!
> > >>>>
> > >>>> But - if login succeeds, I'd like to refresh the whole page... how
> do
> > >>>>
> > >>> I
> > >>>
> > >>>> perform this? In this case I'd like to have async="false" or
> possibly
> > >>>>
> > >>> use
> > >>>
> > >>>> some other updateComponents.
> > >>>>
> > >>>> Thought of a round-trip page or a forced reload from the client
> using
> > >>>>
> > >>> script
> > >>>
> > >>>> or something...
> > >>>>
> > >>>> Any ideas?
> > >>>>
> > >>>> Malin
> > >>>>
> > >>>>
> > >>>
> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> > >
> > >
> > > This message has been scanned for malware by SurfControl plc.
> > www.surfcontrol.com
> > >
> > >
> >
> > --
> > Peter Stavrinides
> > Albourne Partners (Cyprus) Ltd
> > Tel: +357 22 750652
> >
> > If you are not an intended recipient of this e-mail, please notify the
> > sender, delete it and do not read, act upon, print, disclose, copy,
> retain
> > or redistribute it. Please visit http://www.albourne.com/email.html for
> > important additional terms relating to this e-mail.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

Reply via email to