/** * Creates a new DateLabel using the provided converter. * * @param id * The id of the text field * @param converter * the date converter * @return new instance * * @see org.apache.wicket.markup.html.form.TextField */ public static DateLabel withConverter(String id, DateConverter converter) { return withConverter(id, null, converter); }
/** * Creates a new DateLabel using the provided converter. * * @param id * The id of the text field * @param converter * the date converter * @return new instance * * @see org.apache.wicket.markup.html.form.TextField */ public static DateLabel withConverter(String id, DateConverter converter) { return withConverter(id, null, converter); }
if (viewOnly) { fragment = new Fragment("frag", "viewer"); fragment.add( DateLabel.withConverter("date", model, new InternalDateConverter()) ); DateLabel tzLabel = DateLabel.withConverter("timezone", model, new TimeZoneConverter() ); fragment.add(tzLabel);