Yes, you can do that: simply change the components that you are adding to
the AjaxRequestTarget object to be the form components rather than the
entire form.
You'll need to use something like an AjaxButton so you have access to the
AjaxRequestTarget:
FormComponent<?> c1 = ...
FormComponent<?> c2 = ...
...
new AjaxButton(...) {
public void onSubmit(AjaxRequestTarget target, Form<?> form) {
target.add(c1, c2);
}
}
On Wed, Apr 20, 2016 at 3:21 AM, Iamuser <[email protected]> wrote:
> Hello,
>
> Thank you all for the help.
>
> Is there a way to only rerender the two components (inputtext fields) and
> not all the page?
>
> So submit should remain like this:
>
> @Override
> protected void onSubmit() {
> //other stuff
> }
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Component-disabled-if-it-contains-data-tp4674313p4674320.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>