Hi

Did you override onBeforeRender and convertInput?

Regards,
Linda

triswork wrote:
Hi

I am getting really frustrated here because I can't figure out what I am
doing wrong. I am creating a new TextArea form component that is limited to
a particular number of characters. The trouble is, that my text area is
always rendered containing its own HTML.

Basically, I have:

public class LimitedTextArea extends FormComponentPanel implements
IHeaderContributor {
    public LimitedTextArea(String id, IModel model, int limit) {
        super(id, model);
        TextArea textField = new TextArea("content", model);
        add(textField);
        ...
    }
}

And it is being called like this:
form.add(new LimitedTextArea("content", new PropertyModel(message,
"content"), 160));

And the TextArea always contains this text:
<textarea id="content" name="tabs:panel:form:content:text">

This is driving me absolutely mad! Anyone have any ideas?
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.29/2023 - Release Date: 03/25/09 18:54:00



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

Reply via email to