| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 24/02/2010 11:26:20
|
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!
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 10/05/2010 17:23:07
|
winston
Joined: 07/05/2010 06:37:20
Messages: 1
Offline
|
Did you find an solution for this?
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 25/06/2010 21:02:44
|
zsuiqiang
Joined: 13/12/2009 00:00:00
Messages: 8
Offline
|
I have the same question! anybody help us! thanks
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 30/06/2010 15:00:26
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 02/07/2010 01:35:12
|
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.
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 02/07/2010 12:07:42
|
liming.wu
Joined: 26/10/2004 00:00:00
Messages: 405
Online
|
But I have tried on IE8.
|
|
|
 |
|
|