On 7/30/05, Gert Jan Verhoog <[EMAIL PROTECTED]> wrote: > On Jul 30, 2005, at 04:44, Igor Vaynberg wrote: > > > This will create a field label that will turn red when the linked form > > component has an error. > > > > Another good use is to prepand an asterisk to the fieldlabel's > > label if the > > linked form component has a requiredvalidator added. > > I did more or less the same thing the other day. My FieldLabel class > does two things: It checks the list of validators attached to the > form component (if it's a FormComponent). If the list contains a > RequiredValidator, the value "required" is added to the label's class > attribute. If the component has feedback messages, I add "error" to > the label's class attribute.
Hi Gert, I am interested in your example, are you able to send me some examples? thanks josh ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
