You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rolandpeng <ro...@cht.com.tw> on 2011/02/03 08:51:03 UTC

IndicatingAjaxSubmitLink missing?

Will any later version of wicket add IndicatingAjaxSubmitLink?
It seems this class was missed. Or any other Class similar to this
IndicatingAjaxSubmitButton, but only for link?
Thank you.

Roland.
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3257456.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IndicatingAjaxSubmitLink missing?

Posted by rolandpeng <ro...@cht.com.tw>.
It's really simple.Thanks for your hint!

public abstract class IndicatingAjaxSubmitLink extends AjaxSubmitLink
implements
		IAjaxIndicatorAware {

	private static final long serialVersionUID = 1L;
	private final AjaxIndicatorAppender indicatorAppender = new
AjaxIndicatorAppender();

	public IndicatingAjaxSubmitLink(String id) {
		super(id, null);
		add(indicatorAppender);
	}

	public IndicatingAjaxSubmitLink(String id, Form form) {
		super(id, form);
		add(indicatorAppender);
	}

	/**
	 * @see
org.apache.wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId()
	 */
	public String getAjaxIndicatorMarkupId() {
		return indicatorAppender.getMarkupId();
	}
}
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3259444.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: IndicatingAjaxSubmitLink missing?

Posted by Igor Vaynberg <ig...@gmail.com>.
roll your own, they are pretty trivial. look at the source of IndicatingAjaxLink

-igor

On Wed, Feb 2, 2011 at 11:51 PM, rolandpeng <ro...@cht.com.tw> wrote:
>
> Will any later version of wicket add IndicatingAjaxSubmitLink?
> It seems this class was missed. Or any other Class similar to this
> IndicatingAjaxSubmitButton, but only for link?
> Thank you.
>
> Roland.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/IndicatingAjaxSubmitLink-missing-tp3257456p3257456.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org