{
date = dateParamFormat.parse(dateParam);
}
catch (ParseException e)
{
throw new WicketRuntimeException(e);
}
onEvent(target, date);
}
protected IAjaxCallDecorator getAjaxCallDecorator()
{
return new AjaxCallDecorator()
{
private static final long serialVersionUID = 1L;
public CharSequence decorateScript(CharSequence script)
{
AppendingStringBuffer b = new AppendingStringBuffer();
Matcher mat = ajaxScriptPattern.matcher(script);
if (mat.matches())
{
String url = mat.group(1);
String newUrl = url + "&dateParam='+dateParam+'";
b.append(Strings.replaceAll(script, url, newUrl));
}
else
{
throw new WicketRuntimeException("Internal error in Wicket");
}
return b;
}