Problem with IIPMooViewer inside a facelet

Help
2009-12-18
2012-10-06
  • Zardosht Hodaie

    Zardosht Hodaie - 2009-12-18

    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.

     
  • Ruven

    Ruven - 2009-12-18

    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.

     
  • DGSL

    DGSL - 2009-12-19

    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)

     
  • Zardosht Hodaie

    Zardosht Hodaie - 2009-12-22

    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. :)

     
  • Ruven

    Ruven - 2009-12-22

    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.

     
  • Ruven

    Ruven - 2009-12-22

    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.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks