voyent
ice:panelPopup gives a transparent 404 in the background [SOLVED]  XML
Forum Index -> Portals & Portlets
Author Message
fredrio

Joined: 14/Feb/2011 09:41:10
Messages: 4
Offline


When I make a modal panelPopup visible from an Icefaces portlet on Liferay, I see a transparent 404 web page in the background (not finding /mywebapp/xmlhttp/blank).

In the web page, this script has been generated and is where the non-existing resource reference is passed to an JS function:
Code:
 <script id="A3479:j_idt8:j_idt19:modalPnlPopscript" type="text/javascript">
 Ice.modal.stop('A3479:j_idt8:j_idt19:modalPnlPop');;
 Ice.autoPosition.stop('A3479:j_idt8:j_idt19:modalPnlPop');;
 Ice.autoCentre.start('A3479:j_idt8:j_idt19:modalPnlPop');;
 Ice.iFrameFix.start('A3479:j_idt8:j_idt19:modalPnlPop','/mywebapp/xmlhttp/blank');
 </script>
 


Am I missing some configuration causing the generated script to pass this non-existing resource reference?
(Using icefaces 2.0.0)

I see that the component showcase actually returns a blank page for http://component-showcase.icefaces.org/component-showcase/xmlhttp/blank.
fredrio

Joined: 14/Feb/2011 09:41:10
Messages: 4
Offline


I was missing this config in web.xml:

Code:
     <servlet>
         <servlet-name>Resource Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
 
     <servlet-mapping>
         <servlet-name>Resource Servlet</servlet-name>
         <url-pattern>/xmlhttp/*</url-pattern>
     </servlet-mapping>
 
sosarf


Joined: 19/Oct/2010 07:19:05
Messages: 18
Offline


Thanks fredrio.
I had the same problem and thanks to your solution solved the same problem on icefaces 3.3
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team