You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Corbin, James" <jc...@iqnavigator.com> on 2011/01/17 00:17:52 UTC
Wicket TextArea - Current Buffer Size?
Is it possible to get the current character count from a TextArea component in Wicket by attaching an AjaxEventBehavior?
I successfully capture an onkeypress event, but not sure how I am supposed to get the raw input in the TextArea.
I know that the model won't be updated until the post has occurred, but wondered if there was any way (wicket or otherwise) to get the current text that has been entered into the control?
J.D.
RE: Wicket TextArea - Current Buffer Size?
Posted by "Corbin, James" <jc...@iqnavigator.com>.
Thanks Jeremy. I thought AjaxFormComponentUpdatingBehavior was the appropriate behavior.
I'll try again.
J.D.
-----Original Message-----
From: Jeremy Thomerson [mailto:jeremy@wickettraining.com]
Sent: Sunday, January 16, 2011 4:24 PM
To: users@wicket.apache.org
Subject: Re: Wicket TextArea - Current Buffer Size?
You need this on the client side or server side?
On client, just .value on the dom element.
On server, you'll need an ajax form component updating behavior. Model will
then have the text.
Jeremy Thomerson
http://wickettraining.com
-- sent from my "smart" phone, so please excuse spelling, formatting, or
compiler errors
On Jan 16, 2011 5:18 PM, "Corbin, James" <jc...@iqnavigator.com> wrote:
Is it possible to get the current character count from a TextArea component
in Wicket by attaching an AjaxEventBehavior?
I successfully capture an onkeypress event, but not sure how I am supposed
to get the raw input in the TextArea.
I know that the model won't be updated until the post has occurred, but
wondered if there was any way (wicket or otherwise) to get the current text
that has been entered into the control?
J.D.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket TextArea - Current Buffer Size?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
You need this on the client side or server side?
On client, just .value on the dom element.
On server, you'll need an ajax form component updating behavior. Model will
then have the text.
Jeremy Thomerson
http://wickettraining.com
-- sent from my "smart" phone, so please excuse spelling, formatting, or
compiler errors
On Jan 16, 2011 5:18 PM, "Corbin, James" <jc...@iqnavigator.com> wrote:
Is it possible to get the current character count from a TextArea component
in Wicket by attaching an AjaxEventBehavior?
I successfully capture an onkeypress event, but not sure how I am supposed
to get the raw input in the TextArea.
I know that the model won't be updated until the post has occurred, but
wondered if there was any way (wicket or otherwise) to get the current text
that has been entered into the control?
J.D.