Hi,

Check: 
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
It describes how to do with Ajax and it will be much easier than with a Link.

On Mon, Oct 29, 2012 at 9:21 AM, _kl_ <kriti....@igate.com> wrote:
> Hi,
>
> I am using Link for export functionality on my screen using following code.
>
>                 Link exportLink = new Link("export") {
>                         @Override
>                         public void onClick() {
>                                 List<ABC> list = ABCService
>                                                 .exportABCList();
>                                 ExportUtil export = new ExportUtil();
>                                 export.exportABCToExcel(list, 
> getRequestCycle());
>                         }
>                 };
>
> I need to block the screen for any other functionality by the user while
> this functionality gets over. For other functionalities this is being done
> by using the following code that can be called only for any ajax call:
> @Override
>     public String getAjaxIndicatorMarkupId() {
>         return "div_blockScreen";
>     }
>
> As i am using Link instead of any ajax link (using ajax link for export
> functionality does not work,gives some javascript error )this method is not
> getting called. I thought of calling a javascript method on click on this
> link so that i can block the screen but how will i get to know when to
> unblock it, means on what event i should do it. If somebody has any idea how
> to do it please let me know.
>
> Thanks in advance!
>
>
>
> -----
> _kl_ :)
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Blocking-screen-on-click-of-Link-tp4653425.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

Reply via email to