Re: Progress Bar
http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> said: > Hi all, I am using the progress bar found at extensions. > Is it possible to translate the words of the message that appear at the > status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; > 23 > seconds") ?? > > Or put my own version of messages? > > f(t) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress Bar
Francisco, feel free to provide a patch :) Francisco Diaz Trepat - gmail wrote: Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote: http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> said: Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress Bar
Hi nino, I'm on it. Very simple at first, English default text and javascript function parameters for other values. But I think latter on it could bring all text from server, although it could increase traffic unnecessarily. f(t) On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > Francisco, feel free to provide a patch :) > > Francisco Diaz Trepat - gmail wrote: > >> Could you be more specific? >> You send me the Wicket internationalization link. >> >> The word progress, of Progress Bar, doesn't even exist in the page. >> >> And finally I found that it is not possible through regular (framework) >> means to i18n the Progress Bar due to the fact that the text I referred to >> is inside (hardcoded) the JavaScript file profress.js >> >> f(t) >> >> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak >> <[EMAIL PROTECTED] <[EMAIL PROTECTED]>< >> [EMAIL PROTECTED] <[EMAIL PROTECTED]>> >> >> >>> wrote: >>> >>> >> >> >> >>> >>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html >>> >>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" >>> <[EMAIL PROTECTED]> said: >>> >>> Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Progress Bar
Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED]<[EMAIL PROTECTED]> > wrote: > > http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html > > On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" > <[EMAIL PROTECTED]> said: > > Hi all, I am using the progress bar found at extensions. > > Is it possible to translate the words of the message that appear at the > > status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; > > 23 > > seconds") ?? > > > > Or put my own version of messages? > > > > f(t) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Progress Bar
You could also just do the js with an texttemplate, that way it should be somewhat the same:) I wrote something on it on my blog... http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ If you have any questions just ask... Francisco Diaz Trepat - gmail wrote: Hi nino, I'm on it. Very simple at first, English default text and javascript function parameters for other values. But I think latter on it could bring all text from server, although it could increase traffic unnecessarily. f(t) On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: Francisco, feel free to provide a patch :) Francisco Diaz Trepat - gmail wrote: Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED] <[EMAIL PROTECTED]>< [EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote: http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> said: Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress Bar
your voice in the video? On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > You could also just do the js with an texttemplate, that way it should be > somewhat the same:) > > I wrote something on it on my blog... > > > http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ > > If you have any questions just ask... > > Francisco Diaz Trepat - gmail wrote: > >> Hi nino, I'm on it. Very simple at first, English default text and >> javascript function parameters for other values. >> But I think latter on it could bring all text from server, although it >> could >> increase traffic unnecessarily. >> >> f(t) >> >> On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < >> [EMAIL PROTECTED]> wrote: >> >> >> >>> Francisco, feel free to provide a patch :) >>> >>> Francisco Diaz Trepat - gmail wrote: >>> >>> >>> Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>>< [EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED]<[EMAIL PROTECTED]> >> > wrote: > > > > > > http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html > > On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" > <[EMAIL PROTECTED]> said: > > > > >> Hi all, I am using the progress bar found at extensions. >> Is it possible to translate the words of the message that appear at >> the >> status (Upload Starting... and "34% finished, 71.3M of 209.7M at >> 5.9M/s; >> 23 >> seconds") ?? >> >> Or put my own version of messages? >> >> f(t) >> >> >> >> > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Progress Bar
openning link... On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > You could also just do the js with an texttemplate, that way it should be > somewhat the same:) > > I wrote something on it on my blog... > > > http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ > > If you have any questions just ask... > > Francisco Diaz Trepat - gmail wrote: > >> Hi nino, I'm on it. Very simple at first, English default text and >> javascript function parameters for other values. >> But I think latter on it could bring all text from server, although it >> could >> increase traffic unnecessarily. >> >> f(t) >> >> On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < >> [EMAIL PROTECTED]> wrote: >> >> >> >>> Francisco, feel free to provide a patch :) >>> >>> Francisco Diaz Trepat - gmail wrote: >>> >>> >>> Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>>< [EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED]<[EMAIL PROTECTED]> >> > wrote: > > > > > > http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html > > On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" > <[EMAIL PROTECTED]> said: > > > > >> Hi all, I am using the progress bar found at extensions. >> Is it possible to translate the words of the message that appear at >> the >> status (Upload Starting... and "34% finished, 71.3M of 209.7M at >> 5.9M/s; >> 23 >> seconds") ?? >> >> Or put my own version of messages? >> >> f(t) >> >> >> >> > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Progress Bar
hehe yes why? Francisco Diaz Trepat - gmail wrote: your voice in the video? On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: You could also just do the js with an texttemplate, that way it should be somewhat the same:) I wrote something on it on my blog... http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ If you have any questions just ask... Francisco Diaz Trepat - gmail wrote: Hi nino, I'm on it. Very simple at first, English default text and javascript function parameters for other values. But I think latter on it could bring all text from server, although it could increase traffic unnecessarily. f(t) On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: Francisco, feel free to provide a patch :) Francisco Diaz Trepat - gmail wrote: Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>>< [EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote: http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> said: Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress Bar
I kind of felt curious to knowing a little bit more about you, so hearing the video made me wonder... I got knock down by management on modifying progress.js with templates. Solution was mandate to remove Status Messages all together. so css visibility: hidden added to the status class. wupb-uploadStatus { visibility: hidden; } Sad, but true. On another topic I'm currently working on perfecting a Modeless Window extension of the current Modal window. f(t) On Thu, Nov 13, 2008 at 3:39 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > hehe yes why? > > > Francisco Diaz Trepat - gmail wrote: > >> your voice in the video? >> >> On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael < >> [EMAIL PROTECTED]> wrote: >> >> >> >>> You could also just do the js with an texttemplate, that way it should be >>> somewhat the same:) >>> >>> I wrote something on it on my blog... >>> >>> >>> >>> http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ >>> >>> If you have any questions just ask... >>> >>> Francisco Diaz Trepat - gmail wrote: >>> >>> >>> Hi nino, I'm on it. Very simple at first, English default text and javascript function parameters for other values. But I think latter on it could bring all text from server, although it could increase traffic unnecessarily. f(t) On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > Francisco, feel free to provide a patch :) > > Francisco Diaz Trepat - gmail wrote: > > > > > >> Could you be more specific? >> You send me the Wicket internationalization link. >> >> The word progress, of Progress Bar, doesn't even exist in the page. >> >> And finally I found that it is not possible through regular >> (framework) >> means to i18n the Progress Bar due to the fact that the text I >> referred >> to >> is inside (hardcoded) the JavaScript file profress.js >> >> f(t) >> >> On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak >> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> < >> [EMAIL PROTECTED] <[EMAIL PROTECTED]>> >> < >> [EMAIL PROTECTED] <[EMAIL PROTECTED]>< >> [EMAIL PROTECTED]<[EMAIL PROTECTED]> >> >>< >> [EMAIL PROTECTED] <[EMAIL PROTECTED]>< >> [EMAIL PROTECTED]<[EMAIL PROTECTED]>> >> < >> [EMAIL PROTECTED]<[EMAIL PROTECTED]> >> <[EMAIL PROTECTED]<[EMAIL PROTECTED]> >> > >> >> >> >> >> >> >>> wrote: >>> >>> >>> >>> >>> >>> >> >> >> >>> >>> http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html >>> >>> On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" >>> <[EMAIL PROTECTED]> said: >>> >>> >>> >>> >>> >>> Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Progress Bar
Francisco Diaz Trepat - gmail wrote: I kind of felt curious to knowing a little bit more about you, so hearing the video made me wonder... So now you know :) I got knock down by management on modifying progress.js with templates. Solution was mandate to remove Status Messages all together. so css visibility: hidden added to the status class. wupb-uploadStatus { visibility: hidden; } Sad, but true. Yeah but also simple.. On another topic I'm currently working on perfecting a Modeless Window extension of the current Modal window. Okay interesting.. f(t) On Thu, Nov 13, 2008 at 3:39 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: hehe yes why? Francisco Diaz Trepat - gmail wrote: your voice in the video? On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: You could also just do the js with an texttemplate, that way it should be somewhat the same:) I wrote something on it on my blog... http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ If you have any questions just ask... Francisco Diaz Trepat - gmail wrote: Hi nino, I'm on it. Very simple at first, English default text and javascript function parameters for other values. But I think latter on it could bring all text from server, although it could increase traffic unnecessarily. f(t) On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: Francisco, feel free to provide a patch :) Francisco Diaz Trepat - gmail wrote: Could you be more specific? You send me the Wicket internationalization link. The word progress, of Progress Bar, doesn't even exist in the page. And finally I found that it is not possible through regular (framework) means to i18n the Progress Bar due to the fact that the text I referred to is inside (hardcoded) the JavaScript file profress.js f(t) On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak <[EMAIL PROTECTED] <[EMAIL PROTECTED]> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>< [EMAIL PROTECTED]<[EMAIL PROTECTED]> < [EMAIL PROTECTED] <[EMAIL PROTECTED]>< [EMAIL PROTECTED]<[EMAIL PROTECTED]>> < [EMAIL PROTECTED]<[EMAIL PROTECTED]> <[EMAIL PROTECTED]<[EMAIL PROTECTED]> wrote: http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html On Wed, 12 Nov 2008 12:37:07 -0300, "Francisco Diaz Trepat - gmail" <[EMAIL PROTECTED]> said: Hi all, I am using the progress bar found at extensions. Is it possible to translate the words of the message that appear at the status (Upload Starting... and "34% finished, 71.3M of 209.7M at 5.9M/s; 23 seconds") ?? Or put my own version of messages? f(t) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress Bar
Hi, On Mon, May 5, 2014 at 7:18 PM, Richard W. Adams wrote: > We have a requirement to implement a progress bar for long-running server > operations. We can't use the code at > https://github.com/wicketstuff/core/wiki/Progressbar, because it doesn't > meet our corporate user interface look-and-feel standards. > Have you considered providing your own .css ? https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/progressbar-parent/progressbar/src/main/java/org/wicketstuff/progressbar/ProgressBar.java#L109 > > So, we started our own implementation. Our test page contains these > methods below (the TestExecutor below class implements > Callable). > > > //-- > private Component createButton() { > return new AjaxButton("start-button") { > private static final long serialVersionUID = -1; > > @Override protected void onSubmit(final AjaxRequestTarget > ajax, final Form form) { > > final ExecutorService service = Executors. > newSingleThreadExecutor(); > try { > final ProgressBarTestPage page = > ProgressBarTestPage.this; > final TransactionData data = new > TransactionData (page.getId(), false); > final TestExecutor executor = new > TestExecutor(data, getPermissions()); > > executor.addListener(page); // Request > notification when done > future = service.submit(executor); // > Begin execution > progressBarUpdater.start(ajax, executor); > // Start polling for progress > > } catch (final Exception ex) { > throw new RuntimeException(ex); > } > service.shutdown(); // Terminate gracefully > (VM probably > } // won't exit if we fail to do this) > }; > } > > //-- > /** >Observer Pattern method to let us know when the task is done so we can > check how things went. > */ > @Override public void executionComplete(final EnmCallableExecutor > executor) { > > try { > if (!future.isCancelled()) {// > Unless execution was canceled > final ExecutorResult result = future.get(); // > Get the outcome > System.out.println(result); > /* > * TODO: Show success or error message > */ > } > } catch (final Exception ex) { > ex.printStackTrace(); > } > } > > The ProgessBarUpdater class has this method: > > > //-- > /** > * Displays the progress bar & begins the polling. We don't start the > polling until > * explicitly told to do, for efficiency purposes. > * @param ajax The Ajax request wrapper. > * @param reporter The object to query for progress data. > */ > public void start(final AjaxRequestTarget ajax, final ProgressReporter > reporter) { > > add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)) { > private static final long serialVersionUID = 1L; > > @Override protected void onPostProcessTarget(final > AjaxRequestTarget ajax) { > > final Progress progress = reporter.getProgress(); > final String script = // Build > script to update > ProgressScript.build(progress); // > progress bar > ajax.appendJavascript(script); > if (progress == null) { // If > operation is finished > final ProgressBarUpdater updater = > ProgressBarUpdater.this; > updater.remove(this); // > Stop timer to prevent > ajax.addComponent(updater); // pointless > polling > } > } > }); > ajax.addComponent(this); > } > > The page also contains a Future object so we can check the result after > the thread finishes: > > private Future future; > > __ > > Having said all that, here's the problem: When I click the page's button, > Wicket throws this error: > > Unable to serialize class: java.util.concurrent.FutureTask > > The FutureTask object, I believe, is coming from the service.submit call > whose return value we store in our Future variable. > > Does anyone kn
RE: Progress Bar
There is a pretty nifty, jquery based progress bar, in wicket-jquery-ui library... http://www.7thweb.net/wicket-jquery-ui/progressbar/DefaultProgressBarPage Cheers, Col. -Original Message- From: Richard W. Adams [mailto:rwada...@up.com] Sent: Tuesday, 6 May 2014 3:19 AM To: users@wicket.apache.org Subject: Progress Bar We have a requirement to implement a progress bar for long-running server operations. We can't use the code at https://github.com/wicketstuff/core/wiki/Progressbar, because it doesn't meet our corporate user interface look-and-feel standards. So, we started our own implementation. Our test page contains these methods below (the TestExecutor below class implements Callable). //-- private Component createButton() { return new AjaxButton("start-button") { private static final long serialVersionUID = -1; @Override protected void onSubmit(final AjaxRequestTarget ajax, final Form form) { final ExecutorService service = Executors. newSingleThreadExecutor(); try { final ProgressBarTestPage page = ProgressBarTestPage.this; final TransactionData data = new TransactionData (page.getId(), false); final TestExecutor executor = new TestExecutor(data, getPermissions()); executor.addListener(page); // Request notification when done future = service.submit(executor); // Begin execution progressBarUpdater.start(ajax, executor); // Start polling for progress } catch (final Exception ex) { throw new RuntimeException(ex); } service.shutdown(); // Terminate gracefully (VM probably } // won't exit if we fail to do this) }; } //-- /** Observer Pattern method to let us know when the task is done so we can check how things went. */ @Override public void executionComplete(final EnmCallableExecutor executor) { try { if (!future.isCancelled()) {// Unless execution was canceled final ExecutorResult result = future.get(); // Get the outcome System.out.println(result); /* * TODO: Show success or error message */ } } catch (final Exception ex) { ex.printStackTrace(); } } The ProgessBarUpdater class has this method: //-- /** * Displays the progress bar & begins the polling. We don't start the polling until * explicitly told to do, for efficiency purposes. * @param ajax The Ajax request wrapper. * @param reporter The object to query for progress data. */ public void start(final AjaxRequestTarget ajax, final ProgressReporter reporter) { add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(2)) { private static final long serialVersionUID = 1L; @Override protected void onPostProcessTarget(final AjaxRequestTarget ajax) { final Progress progress = reporter.getProgress(); final String script = // Build script to update ProgressScript.build(progress); // progress bar ajax.appendJavascript(script); if (progress == null) { // If operation is finished final ProgressBarUpdater updater = ProgressBarUpdater.this; updater.remove(this); // Stop timer to prevent ajax.addComponent(updater); // pointless polling } } }); ajax.addComponent(this); } The page also contains a Future object so we can check the result after the thread finishes: private Future future; __ Having said all that, here's the problem: When I click the page's button, Wicket throws this error: Unable to serialize class: java.util.concurrent.FutureTask The FutureTask object, I believe, is coming from the service.submit call whose return value we store in our Future variable. Does anyone know how to get around this roadblock? ** This email and any attachments may contain information that is confidential and/or privileged for the sole u