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?
-- 
View this message in context: 
http://www.nabble.com/FormComponentPanel-woes-tp22720502p22720502.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to