Here is patch:
public class DatePickerPatch extends DatePicker {
private final static class ForAttributeModifier extends AttributeModifier {
private final Component component;
public ForAttributeModifier(Component component) {
super("for", true, new Model(""));
this.component = component;
}
protected String newValue(final String currentValue,
final String replacementValue) {
return component.getPath();
}
}
public DatePickerPatch(String id, Component target, Component label,
DatePickerSettings settings) {
super(id, target, settings);
label.add(new ForAttributeModifier(target));
}
}
Jan
"SourceForge.net" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> Bugs item #1254001, was opened at 2005-08-08 08:30
> Message generated for change (Tracker Item Submitted) made by Item
Submitter
> You can respond by visiting:
>
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1254001&group_id=119783
>
> Please note that this message will contain a full copy of the comment
thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: extensions
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Jan Bares (herkule9s)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: DatePicker changes text field id
>
> Initial Comment:
> DatePicker changes bound TextField id, but there is no
> way how to change <label for=..> attribute.
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
>
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1254001&group_id=119783
>
>
> -------------------------------------------------------
> 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
-------------------------------------------------------
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-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop