For FormComponentFeedbackBorder you'll have to change your hierarchy like that :
HTML : <input type="text" wicket:id="field"> Java : form.add(new FormComponentFeedbackBorder("border").add(new TextField("field"))); Why can't you use FormComponentFeedbackIndicator so you can add it on the fly : HTML : <input type="text" wicket:id="field" /> Java : RequiredTextField<Integer> field = new RequiredTextField<Integer>("field"); form.add(field); final FormComponentFeedbackIndicator indicator = new FormComponentFeedbackIndicator("indicator"); indicator.setOutputMarkupPlaceholderTag(true); indicator.setIndicatorFor(field); form.add(indicator); Regards, Gabriel. James Carman-3 wrote: > > Well, per the example in the "forms with flair" demo, I'm adding these > borders to my components "on the fly" using a visitor. So, I don't > think the FormComponentFeedbackBorder thing will work, since I would > have to actually change the hierarchy by adding my component *to* the > border component (it doesn't implement IComponentBorder as required by > the setComponentBorder method). Or, am I not understanding how to use > it (or something like it)? > -- View this message in context: http://old.nabble.com/Required-Border...-tp28006887p28019255.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org