Re: Is DynamicImageResource safe for multiple windows?

2008-08-18 Thread Michel Goldstein
I found my problem in the end. There was an object that wasn't able to be
correctly serialized (a JFreeChart object), which threw an error that, due
to some mistake on my logging configuration I was hiding.

Anyway, once I fixed the serialization problem, now everything is being
correctly versioned and I don't see any problems with shared image
resources. Thanks for the help!

Michel

On Fri, Aug 15, 2008 at 12:08 PM, Michel Goldstein 
[EMAIL PROTECTED] wrote:

 Building a sample to show the problem has been harder than I thought.
 Because on all bare-bones applications that I tried to build, the URLs end
 up being different (the counter on the interface seems to be working). What
 could make my larger application not increment the
 ?wicket:interface=:counter: count? That seems to be the source of my
 problem. On my application, it's always at 0.

 I'm using wicket 1.3.3 (which is the same version as the one I'm testing it
 with) and, besides a much deeper component tree, the only meaningful thing
 that is different on my application is that I initialize the
 SpringComponentInjector (which I don't think should be the issue, but it's
 good to mention).

 Thanks,
 Michel


 On Thu, Aug 14, 2008 at 10:26 PM, Michel Goldstein 
 [EMAIL PROTECTED] wrote:

 As I mentioned, I basically used what was in the twiki about JFreeChart
 integration. I'll build a simple example of the problem and send it out
 sometime tomorrow (USA Pacific time).

 Thanks,
 Michel


 On Thu, Aug 14, 2008 at 7:59 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Thu, 14 Aug 2008, Michel Goldstein wrote:
  Spoke too soon... Unfortunately the problem still seems to be there
 even
  after I've added the NonCachingImage. This furthers the confirmation
 that
  it's not browser caching issue, but a resource sharing problem.

 From where does the image data come from, and when?

 You could show some code, preferably in an easily
 executable quickstart, and maybe someone could help you.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






Re: Is DynamicImageResource safe for multiple windows?

2008-08-15 Thread Michel Goldstein
Building a sample to show the problem has been harder than I thought.
Because on all bare-bones applications that I tried to build, the URLs end
up being different (the counter on the interface seems to be working). What
could make my larger application not increment the
?wicket:interface=:counter: count? That seems to be the source of my
problem. On my application, it's always at 0.

I'm using wicket 1.3.3 (which is the same version as the one I'm testing it
with) and, besides a much deeper component tree, the only meaningful thing
that is different on my application is that I initialize the
SpringComponentInjector (which I don't think should be the issue, but it's
good to mention).

Thanks,
Michel

On Thu, Aug 14, 2008 at 10:26 PM, Michel Goldstein 
[EMAIL PROTECTED] wrote:

 As I mentioned, I basically used what was in the twiki about JFreeChart
 integration. I'll build a simple example of the problem and send it out
 sometime tomorrow (USA Pacific time).

 Thanks,
 Michel


 On Thu, Aug 14, 2008 at 7:59 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Thu, 14 Aug 2008, Michel Goldstein wrote:
  Spoke too soon... Unfortunately the problem still seems to be there even
  after I've added the NonCachingImage. This furthers the confirmation
 that
  it's not browser caching issue, but a resource sharing problem.

 From where does the image data come from, and when?

 You could show some code, preferably in an easily
 executable quickstart, and maybe someone could help you.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Igor Vaynberg
are all the urls really exactly the same?

is your pagesettings.automaticmultiwindowsupport enabled?

-igor

On Thu, Aug 14, 2008 at 10:30 AM, Michel Goldstein
[EMAIL PROTECTED] wrote:
 Hi,

 I have an application that generates different reports based on what the
 user selects. The report generation page is the same, but the reports vary.
 Part of the reports contain a DynamicImageResource (JFreeChart chart).
 Everything works great when a user is looking at a report at a time. But
 when multiple browser windows are open at the same time for the same user,
 each containing a different report, diagrams seem to get shared between
 reports, or sometimes are missing from some of them (broken resource).

 Looking at the generated URL, it looks like the problem must be with
 something more fundamental in the way I'm structuring my page, because the
 image URL seems to be fixed to the component tree:

 img 
 src=../../../../?wicket:interface=:0:label_content:summaryPanelContainer:0:summaryPanel:processedHistory::IResourceListener::
 wicket:id=processedHistory/


 Which will always be the same between reports, so it's expected that they
 will show the same image (if I understand the rest of the architecture
 correctly). Is there something I'm missing here? To create the image, I
 followed what is in the wiki:

 http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html

 Is there something missing there? Do I have to wrap my images on some
 container that will ensure that its path will be unique for each report? Or
 actually, is there a way to do that?

 As a more general Wicket architecture question, are resources
 session-specific, or are concurrent users also potentially sharing the
 resource too? I wasn't able to verify this correctly on my side because
 synchronizing different is harder than just ctrl-clicking on multiple report
 links on a same browser.

 Thanks and I apologize if this was already discussed before. I wasn't able
 to find any references to it.

 Michel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Michel Goldstein
Q: are all the urls really exactly the same?

Yes, they are exactly the same

Q: is your pagesettings.automaticmultiwindowsupport enabled?

Interesting. I didn't know of such setting. But I did change it in the
application, adding:

getPageSettings().setAutomaticMultiWindowSupport(true);

but I'm still seeing the same behavior and the same URLs.

Michel

On Thu, Aug 14, 2008 at 11:15 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 are all the urls really exactly the same?

 is your pagesettings.automaticmultiwindowsupport enabled?

 -igor

 On Thu, Aug 14, 2008 at 10:30 AM, Michel Goldstein
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I have an application that generates different reports based on what the
  user selects. The report generation page is the same, but the reports
 vary.
  Part of the reports contain a DynamicImageResource (JFreeChart chart).
  Everything works great when a user is looking at a report at a time. But
  when multiple browser windows are open at the same time for the same
 user,
  each containing a different report, diagrams seem to get shared between
  reports, or sometimes are missing from some of them (broken resource).
 
  Looking at the generated URL, it looks like the problem must be with
  something more fundamental in the way I'm structuring my page, because
 the
  image URL seems to be fixed to the component tree:
 
  img
 src=../../../../?wicket:interface=:0:label_content:summaryPanelContainer:0:summaryPanel:processedHistory::IResourceListener::
  wicket:id=processedHistory/
 
 
  Which will always be the same between reports, so it's expected that they
  will show the same image (if I understand the rest of the architecture
  correctly). Is there something I'm missing here? To create the image, I
  followed what is in the wiki:
 
  http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html
 
  Is there something missing there? Do I have to wrap my images on some
  container that will ensure that its path will be unique for each report?
 Or
  actually, is there a way to do that?
 
  As a more general Wicket architecture question, are resources
  session-specific, or are concurrent users also potentially sharing the
  resource too? I wasn't able to verify this correctly on my side because
  synchronizing different is harder than just ctrl-clicking on multiple
 report
  links on a same browser.
 
  Thanks and I apologize if this was already discussed before. I wasn't
 able
  to find any references to it.
 
  Michel
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Michel Goldstein
I read a different thread that is going on right now about preventing image
caching by using a NonCachingImage instead Image and seeing that it adds a
random reference to the image, I thought it might help on my problem too.
And, as far as I can tell, it actually did solve my problem too.

Should the wiki be changed to use NonCachingImage or is it supposed to work
with Image? I feel like it should, but I probably don't know the internals
Wicket enough to make this call. Maybe my code was still missing something
else.

Thanks,
Michel

On Thu, Aug 14, 2008 at 12:01 PM, Michel Goldstein 
[EMAIL PROTECTED] wrote:

 Q: are all the urls really exactly the same?

 Yes, they are exactly the same

 Q: is your pagesettings.automaticmultiwindowsupport enabled?

 Interesting. I didn't know of such setting. But I did change it in the
 application, adding:

 getPageSettings().setAutomaticMultiWindowSupport(true);

 but I'm still seeing the same behavior and the same URLs.

 Michel


 On Thu, Aug 14, 2008 at 11:15 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 are all the urls really exactly the same?

 is your pagesettings.automaticmultiwindowsupport enabled?

 -igor

 On Thu, Aug 14, 2008 at 10:30 AM, Michel Goldstein
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I have an application that generates different reports based on what the
  user selects. The report generation page is the same, but the reports
 vary.
  Part of the reports contain a DynamicImageResource (JFreeChart chart).
  Everything works great when a user is looking at a report at a time. But
  when multiple browser windows are open at the same time for the same
 user,
  each containing a different report, diagrams seem to get shared between
  reports, or sometimes are missing from some of them (broken resource).
 
  Looking at the generated URL, it looks like the problem must be with
  something more fundamental in the way I'm structuring my page, because
 the
  image URL seems to be fixed to the component tree:
 
  img
 src=../../../../?wicket:interface=:0:label_content:summaryPanelContainer:0:summaryPanel:processedHistory::IResourceListener::
  wicket:id=processedHistory/
 
 
  Which will always be the same between reports, so it's expected that
 they
  will show the same image (if I understand the rest of the architecture
  correctly). Is there something I'm missing here? To create the image, I
  followed what is in the wiki:
 
  http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html
 
  Is there something missing there? Do I have to wrap my images on some
  container that will ensure that its path will be unique for each report?
 Or
  actually, is there a way to do that?
 
  As a more general Wicket architecture question, are resources
  session-specific, or are concurrent users also potentially sharing the
  resource too? I wasn't able to verify this correctly on my side because
  synchronizing different is harder than just ctrl-clicking on multiple
 report
  links on a same browser.
 
  Thanks and I apologize if this was already discussed before. I wasn't
 able
  to find any references to it.
 
  Michel
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Michel Goldstein
Spoke too soon... Unfortunately the problem still seems to be there even
after I've added the NonCachingImage. This furthers the confirmation that
it's not browser caching issue, but a resource sharing problem.

Any ideas would be greatly appreciated.

Thanks,
Michel

On Thu, Aug 14, 2008 at 1:18 PM, Michel Goldstein 
[EMAIL PROTECTED] wrote:

 I read a different thread that is going on right now about preventing image
 caching by using a NonCachingImage instead Image and seeing that it adds a
 random reference to the image, I thought it might help on my problem too.
 And, as far as I can tell, it actually did solve my problem too.

 Should the wiki be changed to use NonCachingImage or is it supposed to work
 with Image? I feel like it should, but I probably don't know the internals
 Wicket enough to make this call. Maybe my code was still missing something
 else.

 Thanks,
 Michel


 On Thu, Aug 14, 2008 at 12:01 PM, Michel Goldstein 
 [EMAIL PROTECTED] wrote:

 Q: are all the urls really exactly the same?

 Yes, they are exactly the same

 Q: is your pagesettings.automaticmultiwindowsupport enabled?

 Interesting. I didn't know of such setting. But I did change it in the
 application, adding:

 getPageSettings().setAutomaticMultiWindowSupport(true);

 but I'm still seeing the same behavior and the same URLs.

 Michel


 On Thu, Aug 14, 2008 at 11:15 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 are all the urls really exactly the same?

 is your pagesettings.automaticmultiwindowsupport enabled?

 -igor

 On Thu, Aug 14, 2008 at 10:30 AM, Michel Goldstein
 [EMAIL PROTECTED] wrote:
  Hi,
 
  I have an application that generates different reports based on what
 the
  user selects. The report generation page is the same, but the reports
 vary.
  Part of the reports contain a DynamicImageResource (JFreeChart chart).
  Everything works great when a user is looking at a report at a time.
 But
  when multiple browser windows are open at the same time for the same
 user,
  each containing a different report, diagrams seem to get shared between
  reports, or sometimes are missing from some of them (broken resource).
 
  Looking at the generated URL, it looks like the problem must be with
  something more fundamental in the way I'm structuring my page, because
 the
  image URL seems to be fixed to the component tree:
 
  img
 src=../../../../?wicket:interface=:0:label_content:summaryPanelContainer:0:summaryPanel:processedHistory::IResourceListener::
  wicket:id=processedHistory/
 
 
  Which will always be the same between reports, so it's expected that
 they
  will show the same image (if I understand the rest of the architecture
  correctly). Is there something I'm missing here? To create the image, I
  followed what is in the wiki:
 
  http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html
 
  Is there something missing there? Do I have to wrap my images on some
  container that will ensure that its path will be unique for each
 report? Or
  actually, is there a way to do that?
 
  As a more general Wicket architecture question, are resources
  session-specific, or are concurrent users also potentially sharing the
  resource too? I wasn't able to verify this correctly on my side because
  synchronizing different is harder than just ctrl-clicking on multiple
 report
  links on a same browser.
 
  Thanks and I apologize if this was already discussed before. I wasn't
 able
  to find any references to it.
 
  Michel
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Timo Rantalaiho
On Thu, 14 Aug 2008, Michel Goldstein wrote:
 Spoke too soon... Unfortunately the problem still seems to be there even
 after I've added the NonCachingImage. This furthers the confirmation that
 it's not browser caching issue, but a resource sharing problem.

From where does the image data come from, and when?

You could show some code, preferably in an easily 
executable quickstart, and maybe someone could help you.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is DynamicImageResource safe for multiple windows?

2008-08-14 Thread Michel Goldstein
As I mentioned, I basically used what was in the twiki about JFreeChart
integration. I'll build a simple example of the problem and send it out
sometime tomorrow (USA Pacific time).

Thanks,
Michel

On Thu, Aug 14, 2008 at 7:59 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote:

 On Thu, 14 Aug 2008, Michel Goldstein wrote:
  Spoke too soon... Unfortunately the problem still seems to be there even
  after I've added the NonCachingImage. This furthers the confirmation that
  it's not browser caching issue, but a resource sharing problem.

 From where does the image data come from, and when?

 You could show some code, preferably in an easily
 executable quickstart, and maybe someone could help you.

 Best wishes,
 Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]