ok..i changed the way to code.

My report page is extend to a Common page. The common page got the leftmenu
panel and a wicket child (which is those report page)

So, the common page, i add one modal window component. And this component i
had give the behavior to show it. Example code in parent class :

    
     /// modal window use panel..
     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 );


So, once i run the report page (child class), suppose the modal window
should pop up then only run the report page. As we know the parent class
should run first then only child .. can anyone help me? 


thanks in advance



igor.vaynberg wrote:
> 
> the order in which you add components in java seldom matters, the true
> ordering is defined by markup.
> 
> -igor
> 
> 
> On Jan 30, 2008 9:34 PM, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> thanks for reply in a short time, igor
>>
>> But here , i found the problem,...
>>
>>  In my page constructor, i defined the component modalWindow,
>> feedbackPanel,
>> a form in sequence. So, in common sense, it will call the modalWindow ( i
>> wish to auto pop up once the page is load )  first follow by the other.
>> The
>> problem i faced here is the modal window run at the end once the page is
>> finish loaded.  Cnan i know the reason here... ?
>>
>> my page constructor :
>>
>> public LineChart() {
>>     /// modal window use panel..
>>      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
>> }
>>
>>
>> From the above partial code, the modal window should call then only form.
>> Can anyone give the explanation ?
>>
>>
>> and is it possible i stop the form process if the user click the cancel
>> button from the modal window ?
>>
>>
>> thanks in advance
>>
>>
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > it doesnt have anything to do with server side threading, but with how
>> > browser processes html and javascript.
>> >
>> > -igor
>> >
>> >
>> > On Jan 30, 2008 9:16 PM, 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.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/is-there-wicket-had-per-defined-the-Thread-for-the-form-component-tp15198385p15198494.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]
>>
>>
> 
> ---------------------------------------------------------------------
> 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-tp15198385p15202310.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]

Reply via email to