Hi Folks,

I'am getting totally confused how to add and remove css classes to and form
my text-input-fields on ajax-form-validation.

At first i try to add two css classes step by step:

Iterator<FeedbackMessage> iter =
Session.get().getFeedbackMessages().messages(getFeedbackMessageFilter()).iterator();
if(iter.hasNext()){
indicatorFor.add(new SimpleAttributeModifier("class","validation_error"));
indicatorFor.add(new SimpleAttributeModifier("class", "test"));
}

But gets the Markup only with "class='test' "

How can i add more than one "value" to "class"?

And how can i remove one special css-class from an component if the
validation is okay to this field?


Thanks in Advance for any help.

- Martin

Reply via email to