wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i ii <khandi...@hotmail.com>
Subject RE: ajax progress indicator
Date Fri, 02 May 2008 13:09:13 GMT

much work for simple feature, no?

> Date: Fri, 2 May 2008 15:46:04 +0300
> From: martin.makundi@koodaripalvelut.com
> To: users@wicket.apache.org
> Subject: Re: ajax progress indicator
> 
> I haven't found much. Here are some snipplets that may be of use:
> 
> public class AjaxIndicatorContainer extends WebMarkupContainer {
>   /**
>    * Constructor for TODO
>    * @param form
>    */
>   public AjaxIndicatorContainer(Form form) {
>     super("ajaxIndicator"); // wicket:id
>     setOutputMarkupId(true);
>     setMarkupId("ajaxIndicatorId"); // markup:id
>     form.add(this);
>   }
> 
>   /**
>    * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag)
>    */
>   @Override
>   protected void onComponentTag(ComponentTag tag) {
>     super.onComponentTag(tag);
>     tag.put("src",urlFor(AbstractDefaultAjaxBehavior.INDICATOR));
>   }
> }
> 
> 
>     final AjaxIndicatorContainer indicatorContainer = new
> AjaxIndicatorContainer(loginForm);
> 
> {
>       final AjaxButton loginButton = new
> AbstractAjaxIndicatorAwareButton(LOGIN_BUTTON, loginForm) {
> 
>         /**
>          * @see
> org.apache.wicket.ajax.markup.html.form.AjaxButton#onSubmit(org.apache.wicket.ajax.AjaxRequestTarget,
> org.apache.wicket.markup.html.form.Form)
>          */
>         @Override
>         protected void onSubmit(AjaxRequestTarget target, Form form) {
>           processLogin(userIdField, passwdField);
>           target.addComponent(feedbackPanel); // Update feedback panel too
>         }
> 
>         public String getAjaxIndicatorMarkupId() {
>           return indicatorContainer.getMarkupId();
>         }
>       };
>       loginForm.add(loginButton);
>     }
> 
> 2008/5/2 i ii <khandi336@hotmail.com>:
> >
> >  is documentation available for ajax progess indicator. i cannot find :(
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message