you can give different names (constructor parameter) for the ResourceReference's
On Fri, Mar 23, 2012 at 5:12 PM, Decebal Suiu wrote:
> Works but I have a question:
> The json data path is wicket/resource/org.apache.wicket.Application/jsonRes
> and I think that if I have many charts on the same p
Works but I have a question:
The json data path is wicket/resource/org.apache.wicket.Application/jsonRes
and I think that if I have many charts on the same page (my case), each
chart with another json data, on your solution I am in treble. Right?
Best regards,
Decebal
--
View this message in cont
Right. This will work only for static resources. Sorry.
ResourceReference ref = new ResourceReference("jsonRes") { public
IResource getResource() {return resource;} }
urlFor(new ResourceReferenceHandler(reference))
On Fri, Mar 23, 2012 at 4:29 PM, Decebal Suiu wrote:
> Thanks Martin for the your
Thanks Martin for the your prompt response.
In constructor of OpenFlashChart I have these lines:
jsonResource = new ByteArrayResource("text/plain",
getJsonData().getBytes());
CharSequence dataPath = urlFor(new ResourceRequestHandler(jsonResource,
null));
System.out.println("*** " + dataPath);
d
ByteArrayResource resource = ...
path = urlFor(new ResourceRequestHandler(resource))
On Fri, Mar 23, 2012 at 3:45 PM, Decebal Suiu wrote:
> Hi
>
> I have the same problem. I changed WebResource to ByteArrayResource but I
> don't know how I can migrate the following lines:
>
> public void onResour
Hi
I have the same problem. I changed WebResource to ByteArrayResource but I
don't know how I can migrate the following lines:
public void onResourceRequested() {
createJsonResource();
// TODO wicket 1.5
// jsonResource.onResourceRequested();
}
No method onResourceRequested(
Yes, I am not yet thru with my wicket 1.5 migration. so was changing my 1.4
version and testing the same.
I think its some thing to do with apache proxy. If i directly access the
:8080/erp it works but when i access thru the apache
/erp i face this problem.
my apache config
-
Pr
On Wed, Nov 30, 2011 at 2:31 PM, nazeem wrote:
> Thanks Vineet, I managed to change WebResource to ByteArrayResource.
>
> But I am stuck with a problem in the url for json constructed.
>
> CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this,
> IResourceListener.INTERFACE);
> Stri
Thanks Vineet, I managed to change WebResource to ByteArrayResource.
But I am stuck with a problem in the url for json constructed.
CharSequence dataPath = RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);
String url = RequestUtils.toAbsolutePath(dataPath.toString())
hi
use bytearrayresource
On Fri, Nov 25, 2011 at 7:49 AM, nazeem wrote:
> I have a open flash chart implementation following the link below.
>
> https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html
>
> But when i upgrade to wicket 1.5 im stuck at this..
>
> In class OpenFlashChart,
>
I have a open flash chart implementation following the link below.
https://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html
But when i upgrade to wicket 1.5 im stuck at this..
In class OpenFlashChart,
WebResource jsonResource = new WebResource() {
@Override
public IRes
11 matches
Mail list logo