Plase create a jira issue and attach a quickstart to it. Thanks.
-Matej
On 9/13/07, Vit Rozkovec <[EMAIL PROTECTED]> wrote:
> Good day,
> I am using last snapshot of wicket and there is a problem with modal
> window - I create instance of the window and add it to the page. As a
> content I use a panel which has these components:
>
> public class ModalConfirmationPanel extends Panel {
>
> public ModalConfirmationPanel(String id, final ModalWindow window) {
> super(id);
>
> window.setTitle(getString("titulek"));
>
> Form form = new Form("confirmation");
> add(form);
> form.add(new TextArea("explanation", new Model("")));
> form.add(new AjaxLink("ok") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> window.close(target);
> }
> });
> form.add(new AjaxLink("storno") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> window.close(target);
> }
> });
> // form.add(new AjaxSubmitButton("buttonOk", form) {
> // @Override
> // protected void onSubmit(AjaxRequestTarget target, Form form) {
> // window.close(target);
> // }
> // });
> // form.add(new AjaxButton("buttonStorno", form) {
> // @Override
> // protected void onSubmit(AjaxRequestTarget target, Form form) {
> // window.close(target);
> // }
> // });
>
>
> When I uncomment the lines and add AjaxSubmitButtons or AjaxButtons, the
> modal window cannot be closed anymore, neither with the buttons, nor
> with the close button in the header or with links. When I add just
> links, it works ok. It does not matter if there is window.close() method
> in the button's onSubmit method.
>
> If you would like I can make a quickstart. I cannot test anymore, but in
> beta3 it worked.
>
> Vitek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]