Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" for change notification.
The following page has been changed by ScottWalter: http://wiki.apache.org/jakarta-tapestry/CheckingForRequiredValidator ------------------------------------------------------------------------------ } }}} + However, if you are using the new {{{Validation}}} model of Tapestry 4.0 you will want to do this + {{{ + public void writeSuffix(IMarkupWriter writer, IRequestCycle cycle, IFormComponent component, IValidator validator) { + ValidatorsBinding vb = (ValidatorsBinding) component.getBinding("validators"); + Collection collection = (Collection) vb.getObject(); + for(Iterator it = collection.iterator();it.hasNext();){ + Validator validatorObject = (Validator) it.next(); + if(validatorObject instanceof Required) { + writer.printRaw(" "); + writer.begin("span"); + writer.attribute("class", "required-marker"); + writer.beginEmpty("img"); + writer.attribute("src","images/required.jpg"); + writer.attribute("alt","required field"); + writer.attribute("align","middle"); + writer.end(); + + break; + } + } + } + + }}} + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]