thanks for reply, johan i want to show the modal window once the report page is load. Mean background is continue loading the report and the modal window is just as a control (its features is invisible the background and only close once action performed is click in the modal window ) to prevent user navigate to other page. For the modal window it only define one cancel button, mean if user click the cancel button, the background ( report page ) is stop.
Yes... the modal window is only shown by an ajax link. I get the source from this forum ..where it can fire the ajaxlink whitout click the link. Here is the code < getBodyContainer().addOnLoadModifier(new ClickOnceOnLoadModel( ajaxLink ), null ); > Even i tried to create a modal window with ajaxlink ( add auto fire event as above code ) and put at the parent class and the report page is the child class. But the result is same, the report page is finish loaded then only pop up the modal window. my report page constructor : public LineChart() { /// modal window use panel..declare the modal window setting here then add add(modalWindow); // to auto pop up the modal window. ajaxLink = new AjaxLink("cancelReportModalLink"){ @Override public void onClick(AjaxRequestTarget target) { cancelReportModal.show(target); } }; add(ajaxLink); // Fire the ajaxLink onclick function getBodyContainer().addOnLoadModifier(new ClickOnceOnLoadModel( ajaxLink ), null ); add(feedback); add(new LineChartForm("LineChartForm")); } private class LineChartForm extends Form { // execute query // result as in JFreeChart } i add the component for modal window then only come to form. supposedly it will show the modal window then load the form, am i right . Why ? 2 process in a same time cant together? Is because the process haven't done, so the request wont send to wicket there, 2 way i tried. Call the modal window at Parent class and also child class. But it still given me the same result. between, can you explain more or give example for the onload event that you mentioned ? onLoad event for the modal window ? I was using the wicket 1.2.4. Is it the version cant support it and i need to upgrade ? Thanks in advance - kenix Johan Compagner wrote: > > how do you show the modal dialog?? > Normally the modal dialog is only shown by an ajax link. > I guess you show it on onload event. Then yes the page will first load > itself > then call onload and then the modal window will show itself > > johan > > > > On Jan 31, 2008 6:16 AM, kenixwong <[EMAIL PROTECTED]> wrote: > >> >> hi, >> >> for the above case, for example... my page constructor: i add the >> component >> ( modal window, feedBackPanel, form ) . Once i load the page, why the >> modal >> window will only display when the page is finish loaded. Is that the >> wicket >> had default set the main thread for the form component? >> >> Thanks in advance >> -- >> View this message in context: >> http://www.nabble.com/is-there-wicket-had-per-defined-the-Thread-for-the-form-component-tp15198385p15198385.html >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/is-there-wicket-had-per-defined-the-Thread-for-the-form-component-tp15198385p15220106.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]