You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/03/15 01:50:25 UTC
DO NOT REPLY [Bug 27656] New: -
ValidationDelegate.writeLabelPrefix/Suffix does not have IValidator access
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27656>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27656
ValidationDelegate.writeLabelPrefix/Suffix does not have IValidator access
Summary: ValidationDelegate.writeLabelPrefix/Suffix does not have
IValidator access
Product: Tapestry
Version: 3.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Framework
AssignedTo: tapestry-dev@jakarta.apache.org
ReportedBy: jakarta@ehatchersolutions.com
public void writeLabelSuffix(IFormComponent field, IMarkupWriter writer, IRequestCycle cycle) {
if (field instanceof ValidField) {
ValidField validField = (ValidField) field;
System.out.println("label suffix validField.getValidator() = " + validField.getValidator());
}
always returns null, however:
public void writeSuffix(IMarkupWriter writer, IRequestCycle cycle, IFormComponent field, IValidator
validator) {
if (field instanceof ValidField) {
ValidField validField = (ValidField) field;
System.out.println("suffix validField.getValidator() = " + validField.getValidator());
}
super.writeSuffix(writer, cycle, field, validator);
}
returns the attached field validator.
This means it is currently impossible to decorate a field label for required fields (append an asterisk, for
example).
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org