Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-26 Thread ZedroS Schwart
Hi Erik The translation is there : http://zedros.developpez.com/articles/java/wicket/ajax/ The article will be checked by fellow members of developpez.com and then announce on the news of this website. I'll then add it to the wicket. In between, every comment is welcome ;) (or afterwards lol) Be

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread ZedroS Schwart
Thanks a lot. It'll be done in the coming days :) Cheers, ZedroS On 4/23/07, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Of course, please go ahead! > > When you're done, please add the French link to > http://cwiki.apache.org/WICKET/articles-about-wicket.html. > > Erik. > > ZedroS Schwart

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread Erik van Oosten
Of course, please go ahead! When you're done, please add the French link to http://cwiki.apache.org/WICKET/articles-about-wicket.html. Erik. ZedroS Schwart wrote: > It's a very instructive post. > > Do you mind if I translate it to french and then publish it on this > website : http://www.

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread ZedroS Schwart
It's a very instructive post. Do you mind if I translate it to french and then publish it on this website : http://www.developpez.com/ ? For sure I would put a link to your blog ! :) ZedroS - This SF.net email is sponsored b

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread Erik van Oosten
Hi ZedroS, Sorry, I am a bit late in this thread. Perhaps I am too late, but otherwise you might benefit from this article http://day-to-day-stuff.blogspot.com/2007/01/backward-compatible-ajax-development.html. Regards, Erik. ZedroS Schwart wrote: > Thanks a lot for your answer. > > In fa

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread ZedroS Schwart
Thanks a lot for your answer. In fact, I was confused because the form onSubmit was called but the setVisible(false) in it wasn't rendered. I've just added target.addComponent(form) on my ajax submit button and it now works properly. I didn't know this target.AddComponent was first of all meaning

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread James McLaughlin
For example, if the form lives inside, then in onSubmit do target.addComponent(panel) . This way the panel's markup gets replaced in the browser and since isVisible is false for the form, the forms markup simply won't be there. I guess the problem you are having now is that you are adding the form

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread Johan Compagner
or in 1.3 use: public final Component setOutputMarkupPlaceholderTag(final boolean outputTag) On 4/23/07, James McLaughlin <[EMAIL PROTECTED]> wrote: Sure, just replace the forms parent in onSubmit. best, jim On 4/23/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote: > > Hi all > > I've recently

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread ZedroS Schwart
Hi Jim What do you mean by "replace the forms parent" ? I'm a newbe, this may explain that ;) Thanks again ZedroS On 4/23/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > Sure, just replace the forms parent in onSubmit. > > best, > jim > > > On 4/23/07, ZedroS Schwart <[EMAIL PROTECTED] > wrote

Re: [Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread James McLaughlin
Sure, just replace the forms parent in onSubmit. best, jim On 4/23/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote: Hi all I've recently encountered and understood more and more ajax limitations and here is one I'm still wondering about : should form.setVisible(false) be possible in an AjaxSubmi

[Wicket-user] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?

2007-04-23 Thread ZedroS Schwart
Hi all I've recently encountered and understood more and more ajax limitations and here is one I'm still wondering about : should form.setVisible(false) be possible in an AjaxSubmitButton's onSubmit even ? For sure, this form is the one the ajaxSubmitButton is linked to. Thanks in advance ZedroS