Re: is there wicket had per-defined the Thread for the form component

2008-01-31 Thread kenixwong

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
>> .
>>
>>
>> -
>> 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]



Re: is there wicket had per-defined the Thread for the form component

2008-01-31 Thread Johan Compagner
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
> .
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: is there wicket had per-defined the Thread for the form component

2008-01-31 Thread kenixwong

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 c

Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread Igor Vaynberg
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]



Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread kenixwong

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]



Re: is there wicket had per-defined the Thread for the form component

2008-01-30 Thread Igor Vaynberg
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]