James, thanks for the reply.
The problem turns out to be more complex. Simple page with a modal window
works like a charm with RC5 (I mean I can easily set modal window's
resizability). My application's modal windows on the other hand don't. I
will try to investigate it further and fill a JIRA report if needed.
So far I compared the markup generated by both, my problematic application
and simple quickstart application and it seems that style attributes are
missing in the app that experiences resizability problem.
The style attributes that are missing are "cursor: default;" (as below).
Fixed size modal window:
<div id="_wicket_window_22" class="w_bottomLeft" style="cursor: default;"/>
Resizable (but supposed to be fixed size) modal window:
<div id="_wicket_window_22" class="w_bottomLeft"/>
I will dig into the ModalWindow's code to find out when these atributes are
added and when they don't.
And the code I use to construct and show a modal window:
final ModalWindow modal = new ModalWindow("modal");
modal.setContent(new DummyPanel(modal.getContentId())); //DummyPanel
contains only static text
modal.setTitle("Modal window");
modal.setHeightUnit("px");
modal.setWidthUnit("px");
modal.setInitialHeight(100);
modal.setInitialWidth(300);
modal.setResizable(false);
add(modal);
AjaxFallbackLink showModal = new AjaxFallbackLink("show_modal") {
@Override
public void onClick(AjaxRequestTarget target) {
modal.show(target);
}
};
add(showModal);
Marcin
James Carman-3 wrote:
>
> The 1.4 release is all about "genericizing" Wicket. If you've got a
> regression like this, it's probably not supposed to be happening. I
> would file a JIRA and attach a quickstart.
>
--
View this message in context:
http://www.nabble.com/ModalWindow.setResizable%28false%29-no-longer-works-in-1.4-rc5--tp24135317p24138498.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]