Using a modal window in a frame

2008-09-04 Thread n0_fixed_ab0de

Heya,

I have found myself in a situation where I have needed to get a page with a
modal window displayed within a frame.

When I tried this the close window javascript injected by ModalWindow.java
failed when permission was denied when accessing the following call
window.parent.setTimeout.

To get this to work I changed this to window.self.setTimeout. I wanted to
know if there is a better way to resolve this since I would prefer not to
manage a complete override of the ModalWindow class.

Thanks,
Russell
-- 
View this message in context: 
http://www.nabble.com/Using-a-modal-window-in-a-frame-tp19315719p19315719.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Changing default form button via Ajax

2008-06-24 Thread n0_fixed_ab0de

Got a problem and don't know what I'm doin and cannot think of a way to solve
it.

I have a form within a wizard step. The 'next' button is disabled and
enabled via an ajax call when certain form data is changed. The page is
first rendered without an active 'next' button and so it is not the default.
When I press Enter, after enabling the 'next' button, something else (ie
performs 'previous' submit) or nothing happens.

Tried the following...

serviceType.add(new AjaxFormComponentUpdatingBehavior(onchange) {
protected void onUpdate(AjaxRequestTarget target) {
..
setComplete(true); // WizardStep should now display 'next'
button

NextButton next = (NextButton) buttonBar.get(next);
Form form = (Form) get(form);
form.setDefaultButton(next);
target.addComponent(form);
target.addComponent(next);
}
}

This wipes all form data (which I understand but don't know how to
circumvent easily apart from adding the  other components again which sucks)
but in some cases it weirdly allows Enter to fire the 'next' submit
sometimes if another ajax request occurs between the above event and submit.

Can anyone tell me if I'm on the right track or doing something crazy or if
there is a better way to approach it? Or should I go back to basics ;)

Cheers,
Russell
-- 
View this message in context: 
http://www.nabble.com/Changing-default-form-button-via-Ajax-tp18096567p18096567.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Link and Submit behaviour

2008-01-15 Thread n0_fixed_ab0de

That was it, thanks
-- 
View this message in context: 
http://www.nabble.com/Link-and-Submit-behaviour-tp14805240p14841550.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]