I found the problem. It seems the url must be encoded otherwise the OFC
cannot find the data file. I don't have an account on apache yet so I can't
update the wiki.
private String getUrlForJson() {
CharSequence dataPath =
RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);
//######### ADDED THIS ###############################
try {
dataPath = URLEncoder.encode(dataPath.toString(),
"UTF-8");
}
catch (UnsupportedEncodingException e) {
LOGGER.error("Error encoding dataPath for Chart Json
data file. Details:
" + e);
}
//################################################
return RequestUtils.toAbsolutePath(dataPath.toString());
}
--
View this message in context:
http://www.nabble.com/linking-to-a-text-ResourceReference-tp19753402p24458873.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]