Please see the following code:

        private static class RequiredLabel extends SimpleFormComponentLabel
                private static final long serialVersionUID = 
                //private boolean required;
                FormComponent fc;
                public RequiredLabel(String id, FormComponent fc)
                        super(id, fc);
                        //this.required = fc.isRequired();
                        this.fc = fc;

                protected void onComponentTag(ComponentTag tag)
                        if (fc.isRequired()) {
                        else {
                                 // ?? how do I remove the previously placed

RequiredLabel is a label that is used with a FormComponent. It is used to
put the red asterisk to show that input to the field is required.   But what
happens is that on an ajax request the red asterisks keep on piling up.  And
I have a case where the field may be changed to be not required.   How do I
remove the previosly placed red asterisk?


View this message in context:
Sent from the Users forum mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to