FeedbackLabel.onBeforeRender calls setModel(IModel) but wicket 1.4 doesn't
seem to have this method.

   protected void onBeforeRender() {
        super.onBeforeRender();
        this.setModel(null);
        if(component.getFeedbackMessage()!=null){
            if(this.text!=null){
                this.setModel(text);
            } else {
                this.setModel(new
Model(component.getFeedbackMessage().getMessage()));
            }

            this.add(new AttributeModifier("class", true, new
Model("feedbacklabel " +
component.getFeedbackMessage().getLevelAsString())));
        } else {
            this.setModel(null);
        }
    }
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Validations-tp1879918p3079456.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to