See IAjaxIndicatorAware On Mon, Oct 15, 2012 at 6:06 PM, Anna Simbirtsev <asimbirt...@gmail.com>wrote:
> Hi > > I want to show a label like "Processing.... Do not click submit button > again." when AjaxSubmitLink is clicked. > > AjaxSubmitLink processes large volume of data, and is slow, and clicking > the button twice, processes the records twice. > > I added the following, but it does not work. > > Label processing = new Label("processing", new Model<String>("")); > processing.setOutputMarkupPlaceholderTag(true); > form.add(processing); > > private AjaxSubmitLink makeBulkBalanceSubmitLink() > { > return new AjaxSubmitLink("submitButton1") { > > private static final long serialVersionUID = 1L; > > protected void onSubmit(AjaxRequestTarget target, final Form<?> > form) > { > processing.setDefaultModelObject("Processing.... Do not > click submit button again."); > target.addComponent(processing); > > .................... > setResponsePage(MyClass.class, params); > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com