Hello Martin ;)
i tired
indicatorFor.add(new AttributeModifier("class",new
Model<String>("validation_error")));
inicatorFor.add(new AttributeModifier("class",new Model<String>("test")));
but in the markup no "class" attribute appears?
- Martin
Martin Sachs wrote:
>
> Hi Martin
>
> user the AttributeModifier or AttributeAppender classes.
>
>
>
> Martin
>
> Martin U schrieb:
>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/How-to-add-and-remove-css-classes-the-right-way--tp27464616p27464720.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]