Re: Add or remove a row in RefreshingView with Ajax

2013-10-25 Thread MartinoSuperman
Hi,

Thanks for the advice. You're right. I also read those pages.

I already implemented it.

But now my question is:

I put the RefreshingView in a panel. And that panel is situated a
WebMarkupContainer. After I pressed the button on submit of Ajax, the
RefreshingView should refresh, but still it does not work.

Which commands do I have to use to make that refreshing possible? Do I have
to replace the whole RefreshingView for example?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-or-remove-a-row-in-RefreshingView-with-Ajax-tp4661944p4661960.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Add or remove a row in RefreshingView with Ajax

2013-10-25 Thread Martin Grigorov
On Fri, Oct 25, 2013 at 4:18 AM, Colin Rogers <
colin.rog...@objectconsulting.com.au> wrote:

> Hi there,
>
> Not sure what you mean by 'does not work'... so guessing the issue, and
> the solution.
>
> Are you updating the whole RepeatingView? If so, you need to wrap the
> repeater in a WebMarkupContainer and refresh that (remembering to
> setOutputMarkupId to true etc.)
>
> I don't know the reason why, but repeaters have to be updated via their
> parent container.
>

The reason is because repeaters' have no markup. The markup you provide is
used for the repeater's items.

Check
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/


>
> Cheers,
> Col.
>
> -Original Message-
> From: MartinoSuperman [mailto:martinosuper...@live.nl]
> Sent: Friday, October 25, 2013 3:36 AM
> To: users@wicket.apache.org
> Subject: Add or remove a row in RefreshingView with Ajax
>
> Hi,
>
> I have a RefreshingView, which consists of TextFields, Labels and a
> DownloadLink.
>
> When a button is pressed, a new row should be added with the help of Ajax.
>
> Unfortunately, this does not work.
>
> Can somebody tell me what I have to program to make adding and removing
> rows in RefreshingView possible?
>
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Add-or-remove-a-row-in-RefreshingView-with-Ajax-tp4661944.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
> EMAIL DISCLAIMER This email message and its attachments are confidential
> and may also contain copyright or privileged material. If you are not the
> intended recipient, you may not forward the email or disclose or use the
> information contained in it. If you have received this email message in
> error, please advise the sender immediately by replying to this email and
> delete the message and any associated attachments. Any views, opinions,
> conclusions, advice or statements expressed in this email message are those
> of the individual sender and should not be relied upon as the considered
> view, opinion, conclusions, advice or statement of this company except
> where the sender expressly, and with authority, states them to be the
> considered view, opinion, conclusions, advice or statement of this company.
> Every care is taken but we recommend that you scan any attachments for
> viruses.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Add or remove a row in RefreshingView with Ajax

2013-10-24 Thread Colin Rogers
Hi there,

Not sure what you mean by 'does not work'... so guessing the issue, and the 
solution.

Are you updating the whole RepeatingView? If so, you need to wrap the repeater 
in a WebMarkupContainer and refresh that (remembering to setOutputMarkupId to 
true etc.)

I don't know the reason why, but repeaters have to be updated via their parent 
container.

Cheers,
Col.

-Original Message-
From: MartinoSuperman [mailto:martinosuper...@live.nl]
Sent: Friday, October 25, 2013 3:36 AM
To: users@wicket.apache.org
Subject: Add or remove a row in RefreshingView with Ajax

Hi,

I have a RefreshingView, which consists of TextFields, Labels and a 
DownloadLink.

When a button is pressed, a new row should be added with the help of Ajax.

Unfortunately, this does not work.

Can somebody tell me what I have to program to make adding and removing rows in 
RefreshingView possible?

Thanks in advance!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Add-or-remove-a-row-in-RefreshingView-with-Ajax-tp4661944.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

EMAIL DISCLAIMER This email message and its attachments are confidential and 
may also contain copyright or privileged material. If you are not the intended 
recipient, you may not forward the email or disclose or use the information 
contained in it. If you have received this email message in error, please 
advise the sender immediately by replying to this email and delete the message 
and any associated attachments. Any views, opinions, conclusions, advice or 
statements expressed in this email message are those of the individual sender 
and should not be relied upon as the considered view, opinion, conclusions, 
advice or statement of this company except where the sender expressly, and with 
authority, states them to be the considered view, opinion, conclusions, advice 
or statement of this company. Every care is taken but we recommend that you 
scan any attachments for viruses.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org