Re: AjaxIndicatorAppender on a Panel
This is great, thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694p465.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
Re: AjaxIndicatorAppender on a Panel
Not following you... Whole setup should be quite simple. Please read http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/ On Tue, Apr 2, 2013 at 10:40 PM, saty wrote: > yeah, thanks > > I can have my panel implement the IAjaxIndicatorAware and use a > AjaxIndicatorAppender as here, but unless i add this indicator to one of > the component in the panel it does not show up and also in that case it > shows rightly next to the component where i added it. how would i take it > out from components in the panel and add it at the panel level itself. > > > MyPanel implements IAjaxIndicatorAware > { > > AjaxIndicatorAppender indicator = new AjaxIndicatorAppender (); > > @Override > public String getAjaxIndicatorMarkupId() > { > return indicator.getMarkupId(); > } > > > } > > Thanks > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694p4657696.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 > > -- Regards - Ernesto Reinaldo Barreiro
RE: AjaxIndicatorAppender on a Panel
(I'm guessing here) but could you add the indicator to the panel (and expose it via a getter method). And then, with each sub-component, implement the IAjaxIndicatorAware and have getAjaxIndicatorMarkupId() reference the panel's indicator mark up ID. I honestly don't know if this will work, but it seems logical? Cheers, Col. -Original Message- From: saty [mailto:satya...@gmail.com] Sent: 03 April 2013 05:40 To: users@wicket.apache.org Subject: Re: AjaxIndicatorAppender on a Panel yeah, thanks I can have my panel implement the IAjaxIndicatorAware and use a AjaxIndicatorAppender as here, but unless i add this indicator to one of the component in the panel it does not show up and also in that case it shows rightly next to the component where i added it. how would i take it out from components in the panel and add it at the panel level itself. MyPanel implements IAjaxIndicatorAware { AjaxIndicatorAppender indicator = new AjaxIndicatorAppender (); @Override public String getAjaxIndicatorMarkupId() { return indicator.getMarkupId(); } } Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694p4657696.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 EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxIndicatorAppender on a Panel
yeah, thanks I can have my panel implement the IAjaxIndicatorAware and use a AjaxIndicatorAppender as here, but unless i add this indicator to one of the component in the panel it does not show up and also in that case it shows rightly next to the component where i added it. how would i take it out from components in the panel and add it at the panel level itself. MyPanel implements IAjaxIndicatorAware { AjaxIndicatorAppender indicator = new AjaxIndicatorAppender (); @Override public String getAjaxIndicatorMarkupId() { return indicator.getMarkupId(); } } Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694p4657696.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
Re: AjaxIndicatorAppender on a Panel
See IAjaxIndicatorAware On Tue, Apr 2, 2013 at 9:47 PM, saty wrote: > I have a panel with several controls, i would like to add a common > AjaxIndicatorAppender for entire panel. > It does work fine for individual controls but i have not found a way to add > one common for all be able to position the location of loading message gif. > > Ideally i would like to achieve something like a 'Loading..' image layer > takes over the panel until the Ajax Request is complete, could be triggered > by any control in the panel. > > Is this possible in plain wicket, any help would be appreciated. > > Thanks > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatorAppender-on-a-Panel-tp4657694.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 > > -- Regards - Ernesto Reinaldo Barreiro