[Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread ZedroS Schwart
Hi

I'm playing with Ajax and Wicket, which is quite fun, but I've an
issue with AjaxSubmitButton and FormComponentFeedbackBorder.

I guess I should use target.addComponent(Component) ; to declare in my
AjaxSubmitButton that I want the feedback border to be updated.

However, I'm using a CommonForm which is inherited in my page, to add
some specific elements.

Thus, if I put my AjaxSubmitButton in my page, I don't have any
reference to the feedbackborder. If I put my AjaxSubmitButton in the
inherited form itself, then I've to give a reference to my
feedbackpanel (passing it to the form and then the AjaxSubmitButton )
and one reference for each feedbackborder (passing each to the
AjaxSubmitButton).

This end up being quite verbose and annoying, so I wonder whether
there is a better, like calling directly my form "onSubmit" and let it
deal directly with the feedbackborder...

I hope I'm clear enough for you to help me, if not just let me know.

Thanks in advance
ZedroS

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread ZedroS Schwart
Quick update :
I've found some help here :
http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963
but I'm still looking for how to tell the FormComponentFeedbackBorder
to render itself..

++
ZedroS, digging in !


On 3/28/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm playing with Ajax and Wicket, which is quite fun, but I've an
> issue with AjaxSubmitButton and FormComponentFeedbackBorder.
>
> I guess I should use target.addComponent(Component) ; to declare in my
> AjaxSubmitButton that I want the feedback border to be updated.
>
> However, I'm using a CommonForm which is inherited in my page, to add
> some specific elements.
>
> Thus, if I put my AjaxSubmitButton in my page, I don't have any
> reference to the feedbackborder. If I put my AjaxSubmitButton in the
> inherited form itself, then I've to give a reference to my
> feedbackpanel (passing it to the form and then the AjaxSubmitButton )
> and one reference for each feedbackborder (passing each to the
> AjaxSubmitButton).
>
> This end up being quite verbose and annoying, so I wonder whether
> there is a better, like calling directly my form "onSubmit" and let it
> deal directly with the feedbackborder...
>
> I hope I'm clear enough for you to help me, if not just let me know.
>
> Thanks in advance
> ZedroS
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-28 Thread Igor Vaynberg

use a visitor to visit all form component feedback borders and add them to
the target.

-igor


On 3/28/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:


Quick update :
I've found some help here :

http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963
but I'm still looking for how to tell the FormComponentFeedbackBorder
to render itself..

++
ZedroS, digging in !


On 3/28/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm playing with Ajax and Wicket, which is quite fun, but I've an
> issue with AjaxSubmitButton and FormComponentFeedbackBorder.
>
> I guess I should use target.addComponent(Component) ; to declare in my
> AjaxSubmitButton that I want the feedback border to be updated.
>
> However, I'm using a CommonForm which is inherited in my page, to add
> some specific elements.
>
> Thus, if I put my AjaxSubmitButton in my page, I don't have any
> reference to the feedbackborder. If I put my AjaxSubmitButton in the
> inherited form itself, then I've to give a reference to my
> feedbackpanel (passing it to the form and then the AjaxSubmitButton )
> and one reference for each feedbackborder (passing each to the
> AjaxSubmitButton).
>
> This end up being quite verbose and annoying, so I wonder whether
> there is a better, like calling directly my form "onSubmit" and let it
> deal directly with the feedbackborder...
>
> I hope I'm clear enough for you to help me, if not just let me know.
>
> Thanks in advance
> ZedroS
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton and FormComponentFeedbackBorder

2007-03-30 Thread ZedroS Schwart
Thanks Igor.

That's what I was doing but I didn't manage to grab my feedback borders.

It's now done like this :
target.addComponent(formComponent.getParent());

Cheers
ZedroS
On 3/28/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> use a visitor to visit all form component feedback borders and add them to
> the target.
>
> -igor
>
>
>
> On 3/28/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote:
> >
> > Quick update :
> > I've found some help here :
> >
> http://www.nabble.com/FeedbackPanel%2C-Form%2C-which-component-is-caousing-feedback--tf2427268.html#a6767963
> > but I'm still looking for how to tell the FormComponentFeedbackBorder
> > to render itself..
> >
> > ++
> > ZedroS, digging in !
> >
> >
> > On 3/28/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote:
> > > Hi
> > >
> > > I'm playing with Ajax and Wicket, which is quite fun, but I've an
> > > issue with AjaxSubmitButton and FormComponentFeedbackBorder.
> > >
> > > I guess I should use target.addComponent(Component) ; to declare in my
> > > AjaxSubmitButton that I want the feedback border to be updated.
> > >
> > > However, I'm using a CommonForm which is inherited in my page, to add
> > > some specific elements.
> > >
> > > Thus, if I put my AjaxSubmitButton in my page, I don't have any
> > > reference to the feedbackborder. If I put my AjaxSubmitButton in the
> > > inherited form itself, then I've to give a reference to my
> > > feedbackpanel (passing it to the form and then the AjaxSubmitButton )
> > > and one reference for each feedbackborder (passing each to the
> > > AjaxSubmitButton).
> > >
> > > This end up being quite verbose and annoying, so I wonder whether
> > > there is a better, like calling directly my form "onSubmit" and let it
> > > deal directly with the feedbackborder...
> > >
> > > I hope I'm clear enough for you to help me, if not just let me know.
> > >
> > > Thanks in advance
> > > ZedroS
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user