ice.push is null of not an object
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ice.push is null of not an object  XML
Forum Index -> Development Build Feedback
Author Message
nick@moveiteasy.com

Joined: 05/12/2008 00:00:00
Messages: 5
Offline


Hi

I have just installed the Netbeans 6.8a plugin and created my first project.

When I load the page I get a javascript error saying ice.push is null or not an object.

The page is the uusual....

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<h:head>
<title>ICEfaces 2</title>
<h:outputScript name="jsf.js" library="javax.faces"/>
</h:head>
<h:body>
<div id="header">
<!--
<ui:include src="/header.xhtml" >
<ui:param name="param_name" value="param_value" />
</ui:include>
-->
</div>
<div id="content">
<ice:form id="iceForm">
<ice:outputText value="Welcome to ICEfaces 2. Add ICEfaces 1.8 components"/>
<!--
drop ICEfaces components here
-->
</ice:form>
</div>
</h:body>
</html>

I am including icepush.jar in the project, its there by default.


This is the generated HTML...

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>ICEfaces 2</title>
<script src="/vrmui_IF/javax.faces.resource/jsf.js.jsp?ln=javax.faces&stage=Development" type="text/javascript"></script>
<script src='code.icepush.jsf?a5373376' type='text/javascript'></script><script src='/vrmui_IF/javax.faces.resource/bridge.js.jsp?a5373376' type='text/javascript'></script><script src="/vrmui_IF/javax.faces.resource/compat.js.jsp" type="text/javascript"></script>
<script src="/vrmui_IF/javax.faces.resource/icefaces-compat.js.jsp" type="text/javascript"></script></head>
<body>
<div id="header">

</div>
<div id="content"><form action="/vrmui_IF/welcomeICEfaces.jsp" class="iceFrm" enctype="application/x-www-form-urlencoded" id="iceForm" method="post" onsubmit="return false;"><input name="iceForm" type="hidden" value="iceForm" /><input name="icefacesCssUpdates" type="hidden" value="" /><input name="javax.faces.ViewState" type="hidden" value="5642761686802518960:439205869540462320" /><span class="iceOutTxt" id="iceForm:j_idt9">Welcome to ICEfaces 2. Add ICEfaces 1.8 components</span>
<div id="iceFormhdnFldsDiv" style="display:none;"></div>
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-315332338692277675:1484088986245385010" autocomplete="off" /></form>
</div>
<script type="text/javascript">window.ice.window = 1267031535479;</script><script type="text/javascript">ice.push.register(['1267031535479'], ice.retrieveUpdate);</script><script type="text/javascript">ice.DefaultIndicators({blockUI: false,connectionLostRedirectURI: null,sessionExpiredRedirectURI: null,connection: { context: '/vrmui_IF/'},messages: {sessionExpired: 'User Session Expired',connectionLost: 'Network Connection Interrupted',serverError: 'Server Internal Error',description: 'To reconnect click the Reload button on the browser or click the button below',buttonText: 'Reload'}}, document.body);</script></body>
</html>

The one thing I notice is the javascript 'src' for the code.icepush.jsf does not reference the application path - i.e. it is not prefixed with /vrmui_IF/ in my case - it is 'code.icepush.jsf?a5373376'. When I try to access the URL i get a 404 error.

I have just moved from PrimeFaces2 and am hoping that ICEFaces is a little more robust!


winston

Joined: 07/05/2010 06:37:20
Messages: 1
Offline


Did you find an solution for this?
zsuiqiang

Joined: 13/12/2009 00:00:00
Messages: 8
Offline


I have the same question! anybody help us! thanks
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 405
Online


Looks like you are trying ICEfaces 2.0.0 Alpha3. We have already released ICEfaces tooling for Netbeans 6.9 final to support ICEfaces 1.8.2a and ICEfaces 2.0 alpha3.

We just released new version of ICEfaces tooling for Netbeans 6.9 final. Please check it out and see if you still have the same problem.

Liming
[Email]
zsuiqiang

Joined: 13/12/2009 00:00:00
Messages: 8
Offline


The issue is possibly caused by IE8.I try it in other brower,and didn't reproduce the issue.
liming.wu

Joined: 26/10/2004 00:00:00
Messages: 405
Online


But I have tried on IE8.
[Email]
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team