Also you can pass as second argument in AttributeModifier IModel object
which return "error" on if there feedback message available.

Similar to this:
new AttributeModifier("class", new Model() {
                    @Override
                    public Serializable getObject() {
                        if (currentBill != null && currentBill.id ==
item.getModelObject().id) {
                            return "success";
                        }
                        return null;
                    }
                })

Reply via email to