Wednesday 23 December 2009

Why can't icefaces give proper error messages? II

After days of searching and experimentation it seems that its not possible to dynamically import
a .jspx file into another (one which is loaded from a jar, and the src location is supplied by the backing bean).

I'm trying to embed iframes now, but as soon as the iframes render, icefaces freezes up and does not send any events again. The only clue was this javascript error:
Error: no element found
Source File: http://localhost:17080/EbrWeb/block/receive-updated-views
Line: 1


After searching and a hunch that concurrently loading jspx pages breaks icefaces, I looked at the portlet sample
(ICEfaces-1.8.2-src/icefaces/samples/portlet/location/web/WEB-INF/web.xml).

I found that if I include the following in my web.xml, it works! Hurray!
<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>

This makes sense because I want to load several iceface pages in iframes in my main page.

2 comments:

  1. thanks for the input it help me a great deal

    ReplyDelete
  2. Thanks AmanicA,

    Your input helped a lot. I use Seam, IceFaces, Hibernate, etc for web application development. Mainly for monitoring idustrial process.

    Please let me know about youself.

    Nanda Motikane
    nanda.motikane@gmail.com

    ReplyDelete