Thanks Jeremy.  I thought AjaxFormComponentUpdatingBehavior was the appropriate 
behavior.

I'll try again.

J.D.

-----Original Message-----
From: Jeremy Thomerson [mailto:[email protected]] 
Sent: Sunday, January 16, 2011 4:24 PM
To: [email protected]
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" <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to