You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ondrej Zizka <oz...@redhat.com> on 2013/01/21 20:53:08 UTC

OnChangeAjaxBehavior javadoc note

Hi all,

guessing from a name, I would expect these two to do the same:

         link.add( new OnChangeAjaxBehavior() {
             @Override protected void onUpdate( AjaxRequestTarget target ) {
                 ReleaseTraitRowPanel.this.onUpdate( target );
             }
         });

         link.add( new AjaxFormComponentUpdatingBehavior("onchange"){
             @Override protected void onUpdate( AjaxRequestTarget target ) {
                 ReleaseTraitRowPanel.this.onUpdate( target );
             }
         } );

However, the first one reacts (and sends AJAX request) on each keypress.
Could this info be added to the javadoc of OnChangeAjaxBehavior?

Thanks,
Ondra

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


Re: OnChangeAjaxBehavior javadoc note

Posted by Joachim Schrod <js...@acm.org>.
When I started to use Wicket, I stumbled over that feature as well
- and reading Javadoc I often skip the Field Summary until I need
the specific fields. OTOH, I learned quickly that
OnChangeAjaxBehavior() is often not the behavior I want and won't
forget it... :-)

Best,
	Joachim

Sven Meier wrote:
> What about OnChangeAjaxBehavior#EVENT_NAME's javadoc? Isn't that
> sufficient?
> 
> Sven
> 
> On 01/21/2013 08:53 PM, Ondrej Zizka wrote:
>> Hi all,
>>
>> guessing from a name, I would expect these two to do the same:
>>
>>         link.add( new OnChangeAjaxBehavior() {
>>             @Override protected void onUpdate( AjaxRequestTarget
>> target ) {
>>                 ReleaseTraitRowPanel.this.onUpdate( target );
>>             }
>>         });
>>
>>         link.add( new AjaxFormComponentUpdatingBehavior("onchange"){
>>             @Override protected void onUpdate( AjaxRequestTarget
>> target ) {
>>                 ReleaseTraitRowPanel.this.onUpdate( target );
>>             }
>>         } );
>>
>> However, the first one reacts (and sends AJAX request) on each
>> keypress.
>> Could this info be added to the javadoc of OnChangeAjaxBehavior?
>>
>> Thanks,
>> Ondra
>>
>> ---------------------------------------------------------------------
>>
>> 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
> 
> 



	Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jschrod@acm.org


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


Re: OnChangeAjaxBehavior javadoc note

Posted by Sven Meier <sv...@meiers.net>.
What about OnChangeAjaxBehavior#EVENT_NAME's javadoc? Isn't that sufficient?

Sven

On 01/21/2013 08:53 PM, Ondrej Zizka wrote:
> Hi all,
>
> guessing from a name, I would expect these two to do the same:
>
>         link.add( new OnChangeAjaxBehavior() {
>             @Override protected void onUpdate( AjaxRequestTarget 
> target ) {
>                 ReleaseTraitRowPanel.this.onUpdate( target );
>             }
>         });
>
>         link.add( new AjaxFormComponentUpdatingBehavior("onchange"){
>             @Override protected void onUpdate( AjaxRequestTarget 
> target ) {
>                 ReleaseTraitRowPanel.this.onUpdate( target );
>             }
>         } );
>
> However, the first one reacts (and sends AJAX request) on each keypress.
> Could this info be added to the javadoc of OnChangeAjaxBehavior?
>
> Thanks,
> Ondra
>
> ---------------------------------------------------------------------
> 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