Re: Label not updating on AJaxButton submit

2012-01-17 Thread Martin Grigorov
 and show
 the
 upload progress when the upload is 100% complete need to update the
 progress
 label as processing video.

 I decided to go with a simple outer div and internal div while update
 the internal div percentage to show the progress. Finally i added a
 Label
 inside the internal div to show the status...

 /div style=border: 1px solid #5d4617; padding: 3px; background-color:
 #191B10; 
                div style=width:400px; background-color: #55; color:
 white; font-size: 8px; align=left
                    div style=width:0%; background-color: #FF9900;
 align=right wicket:id=customProgressLoading.../div
                /div
            /div/


 Finally i added AjaxSelfUpdatingTimerBehavior to the internal div to
 fetch
 the progress and label every 2 seconds.

 When i click on submit button.. the label is not update while the form is
 being submitted. it shows the final progress i.e. 100% and processing
 completed after file is uploaded.

 I am using AjaxButton to upload on Ajax.

 Any idea how i can achieve this?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4298302.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache




 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4302580.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Label not updating on AJaxButton submit

2012-01-16 Thread Martin Grigorov
Hi,

I think the Ajax calls are serialized.
The page instance can be used by a single request at any time.
So you submit the form and this request acquires the lock on the page.
AjaxSelfTimerUpdatingBehavior cannot use the page until the first
request unlock it.
Additionally the Ajax calls are serialized at the client side
(JavaScript). See AjaxChannel class for more information about this.

To be able to do what you want I suggest to use IResource to upload
to. This way there wont be lock on the server side and with
AjaxChannels with different names at the client side you will solve
both problems.

On Mon, Jan 16, 2012 at 2:51 AM, malebu milton.qura...@gmail.com wrote:
 I have a requirement where i have to upload a video from a page and show the
 upload progress when the upload is 100% complete need to update the progress
 label as processing video.

 I decided to go with a simple outer div and internal div while update
 the internal div percentage to show the progress. Finally i added a Label
 inside the internal div to show the status...

 /div style=border: 1px solid #5d4617; padding: 3px; background-color:
 #191B10; 
                div style=width:400px; background-color: #55; color:
 white; font-size: 8px; align=left
                    div style=width:0%; background-color: #FF9900;
 align=right wicket:id=customProgressLoading.../div
                /div
            /div/


 Finally i added AjaxSelfUpdatingTimerBehavior to the internal div to fetch
 the progress and label every 2 seconds.

 When i click on submit button.. the label is not update while the form is
 being submitted. it shows the final progress i.e. 100% and processing
 completed after file is uploaded.

 I am using AjaxButton to upload on Ajax.

 Any idea how i can achieve this?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4298302.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Label not updating on AJaxButton submit

2012-01-16 Thread malebu
 to upload on Ajax.

 Any idea how i can achieve this?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4298302.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache

 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4302580.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Label not updating on AJaxButton submit

2012-01-15 Thread malebu
I have a requirement where i have to upload a video from a page and show the
upload progress when the upload is 100% complete need to update the progress
label as processing video.

I decided to go with a simple outer div and internal div while update
the internal div percentage to show the progress. Finally i added a Label
inside the internal div to show the status...

/div style=border: 1px solid #5d4617; padding: 3px; background-color:
#191B10; 
div style=width:400px; background-color: #55; color:
white; font-size: 8px; align=left
div style=width:0%; background-color: #FF9900;
align=right wicket:id=customProgressLoading.../div
/div
/div/


Finally i added AjaxSelfUpdatingTimerBehavior to the internal div to fetch
the progress and label every 2 seconds.

When i click on submit button.. the label is not update while the form is
being submitted. it shows the final progress i.e. 100% and processing
completed after file is uploaded.

I am using AjaxButton to upload on Ajax.

Any idea how i can achieve this?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Label-not-updating-on-AJaxButton-submit-tp4298302p4298302.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org