You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by riccardo trombini <ri...@inverted.ch> on 2010/02/10 08:55:06 UTC

Panel.replaceWith() in a DataView

hi

i am writting a software for an article management. a user can post and 
edit articles. to do that i show all the users articles in a 
/*DataView*/. This lists every item in a TableRow.

ButtonPanel buttonPanel = new ButtonPanel("buttonPanel"); // extends Panel
Of course the user needs to delete these, for that i provide a button.
AjaxLink deleteButton = new AjaxLink("deleteButton"){
 ...
}
buttonPanel.add(deleteButton);

But i want to confirm this action befor i delete the article. my idea is 
to Replace the panel which holds the deleteButton with a ConfirmButton 
in another Panel. And afterwards delete or show the original article row.

I use the code i found on the wiki site : 
http://cwiki.apache.org/WICKET/getting-user-confirmation.html
but my ajax update won't send me any html markup which would replace the 
panel.

so my first question is, has anyone ever done this ? especially 
replacing a panel IN a DataView!

thank you very much for your help !









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


Re: Panel.replaceWith() in a DataView

Posted by Cemal Bayramoglu <jW...@cabouge.com>.
Ricardo,

On a more general note, in case you haven't come across it yet, you
want to take a look at BRIX-CMS [1].

Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://code.google.com/p/brix-cms/

On 10 February 2010 07:55, riccardo trombini
<ri...@inverted.ch> wrote:
> hi
>
> i am writting a software for an article management. a user can post and edit
> articles. to do that i show all the users articles in a /*DataView*/. This
> lists every item in a TableRow.
>
> ButtonPanel buttonPanel = new ButtonPanel("buttonPanel"); // extends Panel
> Of course the user needs to delete these, for that i provide a button.
> AjaxLink deleteButton = new AjaxLink("deleteButton"){
> ...
> }
> buttonPanel.add(deleteButton);
>
> But i want to confirm this action befor i delete the article. my idea is to
> Replace the panel which holds the deleteButton with a ConfirmButton in
> another Panel. And afterwards delete or show the original article row.
>
> I use the code i found on the wiki site :
> http://cwiki.apache.org/WICKET/getting-user-confirmation.html
> but my ajax update won't send me any html markup which would replace the
> panel.
>
> so my first question is, has anyone ever done this ? especially replacing a
> panel IN a DataView!
>
> thank you very much for your help !
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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