Subscribe

Problem with IIPMooViewer inside a facelet

  1. 2009-12-18 08:46:55 PST
    Hi, first of all I'd like to say thanks for this greate job. I have a project using richfaces for UI and facelets for page templating. I put the viewer inside a facelet (between some ui:composition tags) but there is nothing rendered to the client. In browser I see only the targetframe but nothing else. Looking at DOM tree shows that other elements (target div, controls, etc.) haven't been created. Putting the viewer on a normal xhtml page, like the sample provided with viewer works compeletely fine. Could you please help me with this? Thanks in advance, Zardosht.
  2. 2009-12-18 15:38:21 PST
    Sorry, I'm not familiar with richfaces or facelets. But it sounds like it could be a javascript library clash. Mootools doesn't mix well with other libraries. Do you get javascript errors on the page? Try to trace what is happening exactly. Alternatively, you can use an iframe to isolate the iipmooviewer javascript from the rest of the page. The embedded demo on the main page of the iipimage site works in this way.
  3. 2009-12-19 12:35:28 PST
    I also had difficults to integrate iipmooviewer into my ajax driven website. But I did what Ruven suggests and it works perfectly inside an iframe, so I recommend this aproach. On the other hand, iipmooviewer shows a "stack overflow at line 0" error message with some images. It happens when zooming out small images, or even at default zoom level when loading images that are very small. Ruven, these are the paths for some of these images in case you want to test them from my site (use the url and get parameters I mailed you on Nov 28): /mnt/FITOFOTO-pyrtif/SANT_200910-C/SANT_60577--2_1200_012.pyr.tif Max-size:2016 2054 (this one shows the error message when zooming out on MS IExplorer 7.0.5730.13, but works well on Firefox 3.0.16) /mnt/FITOFOTO-pyrtif/bc_SANT_200911-A/20091102_012.pyr.tif Max-size:448 474 (this one doesn't even preload with any of the browsers; MS IExplorer 7.0.5730.13 shows the "stack overflow" message, but Firefox doesn't say anything) Both images works well with Fliip viewer (Denis' version; I haven't tried the new one yet)
  4. 2009-12-22 07:08:34 PST
    Hi, thank you for your reply. I think the problem is some conflicts between RichFaces and Mootools. Richfaces is also a javascript intensive framework. I also tried to put the Mootools script in head tag, but then there was some conflicting errors with RichFaces javascript. But the IFrame way worked without problem. By the way, I decided to use the flash client. I looks even nicer. :)
  5. 2009-12-22 09:20:04 PST
    > On the other hand, iipmooviewer shows > a "stack overflow at line 0" error > message with some images. It happens > when zooming out small images, or even > at default zoom level when loading > images that are very small. OK, it seems something is being mis-calculated for these images. It must be a bug in IIPMooviewer.
  6. 2009-12-22 09:49:58 PST
    > Hi, thank you for your reply. I think > the problem is some conflicts between > RichFaces and Mootools. Richfaces is > also a javascript intensive framework. > I also tried to put the Mootools > script in head tag, but then there was > some conflicting errors with RichFaces > javascript. But the IFrame way worked > without problem. By the way, I decided > to use the flash client. I looks even > nicer. :) The latest Mootools should play better with other javascript libraries. The next IIPMooviewer release will be based on this new Mootools version.
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.