You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris Colman <ch...@stepaheadsoftware.com> on 2010/07/09 03:48:20 UTC
AjaxButton documentation error?
The JavaDoc for AjaxButton (and AjaxSubmitButton) says:
"A button that submits the form via ajax. Since this button takes the
form as a constructor argument it does not need to be added to it unlike
the Button component."
Well I've just spent a good amount of time putting that theory to the
test. I use the constructor that takes the form as its second parameter.
Basically the form fails with an error saying wicket can't find the
button component unless I explicitly add the AjaxButton object to the
form object, seemingly contradicting the above doco quote. The Wicket
example explicitly adds the button to the form too - which also seems to
go against the above doco declaration.
Maybe it's a rare case where reading the documentation is not a good
idea =}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxButton documentation error?
Posted by Igor Vaynberg <ig...@gmail.com>.
sounds like a bug, file a jira.
-igor
On Thu, Jul 8, 2010 at 6:48 PM, Chris Colman
<ch...@stepaheadsoftware.com> wrote:
> The JavaDoc for AjaxButton (and AjaxSubmitButton) says:
>
> "A button that submits the form via ajax. Since this button takes the
> form as a constructor argument it does not need to be added to it unlike
> the Button component."
>
> Well I've just spent a good amount of time putting that theory to the
> test. I use the constructor that takes the form as its second parameter.
> Basically the form fails with an error saying wicket can't find the
> button component unless I explicitly add the AjaxButton object to the
> form object, seemingly contradicting the above doco quote. The Wicket
> example explicitly adds the button to the form too - which also seems to
> go against the above doco declaration.
>
> Maybe it's a rare case where reading the documentation is not a good
> idea =}
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org