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 :
......
......
<span wicket:id = "progressBar">
<span wicket:id="msg"></span>
<script type="text/javascript">
var bar1=
createBar(300,15,'white',1,'#215dc6','#428eff',85,17,3,"");
</script>
</span>
.....
..... 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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