I dit it and worked great !, thank you both.

Jaime.

Eelco Hillenius <[EMAIL PROTECTED]> wrote: You could do the processing in a 
separate thread, and return the page
immediately with the progress component that polls (e.g. using Ajax,
though doesn't have to) for the progress. Or like Igor said, put your
progress bar on the page to begin with, make your form submit an ajax
submit, on the submit start that other thread and make the progress
component visible (and it will thus automatically start polling).

Eelco


On 12/5/06, Jaime De La Jara  wrote:
> Thanks, though I'm not sure if this is what I need, maybe I didn't explained
> my problem clearly. First, some code may help :
>
> The html :
>     ......
>     ......
>     
>         
>           
>                     var bar1=
> createBar(300,15,'white',1,'#215dc6','#428eff',85,17,3,"");
>         
>      
>     .....
>      ..... OK SubmitLink
>
> Java :
>
> ... Page constructor
>  ....
>  final WebMarkupContainer bar = new
> WebMarkupContainer("progressBar");
>  final Label msg = new Label("msg", "Processing Vendors Load");
>  bar.add(msg);
>  add(bar.setVisible(false));
> ...
>     add(new SubmitLink("okLink")
>     {
>       public void onSubmit()
>       {
>         // Here I should make the progressBar visible and it should be
> displayed
>          bar.setVisible(true);  (*)
>          // This is the process that takes some time (~ 15 sec)
>          getVendorDao().loadVendors(); (*)
>         // Here I should display a message informing the load results
>         // Here I should make the bar invisible again.
>          bar.setVisible(false);
>       }
>     }
> .....
>
> The problem is, that the page is not reloaded until (*) is completed so the
> bar
> is not made visible before the loading process begins.
> Any hints are greatly appreciated,
>
> Jaime.
>
>
>
> Igor Vaynberg  wrote:
>  if you dont mind using ajax then search for ajax poller, that might be
> useful to you. initially make the components that take a long time to load
> their model invisible, then in ajax poller once they are loaded make them
> visible and add them to the ajax target so they will be painted.
>
> -igor
>
>
> On 12/5/06, Jaime De La Jara  wrote:
> > Hi, I'm looking for advice in the following situation : I have a page that
> lets the users to load the DB information from an external DB, this takes
> some time so I was thinking to display a progress bar while the process
> completes, this progress bar is initially invisible. The problem is : How
> can I make this bar visible, begin the loading process (in parallel) and
> then refresh the contents of the page with the results of the process?
> >
> > Thanks,
> >
> > Jaime.
> >
> > ________________________________
> Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>  ________________________________
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to