voyent
mobi:viewManager not functioning on Mac using Chrome  XML
Forum Index -> ICEmobile General
Author Message
bcantu

Joined: 02/Nov/2009 00:00:00
Messages: 45
Offline


Does anyone have the same issue using Chrome on the MAC (latest versions of Browser and El Captain). I have the below an example index.xhtml page that works fine in Safari and Firfox but not in Chrome. Can anyone help?

Chrome is throwing the following errors in the java console that look, well not good... The offending line is highlighted, the message is "UncaughtReferenceError: jsf is not defined" - In Console:
Code:
viewmanager.js.xhtml?ln=org.icefaces.component.viewmanager&v=4_1_1_160226:371 Uncaught ReferenceError: jsf is not defined:


im.viewManager = {
showView: function(view, event){
//ice.log.debug(ice.log, 'showView(' + view + ') current');
var currentView = getCurrentView();
if( view == currentView ){
return;
}
var views = document.querySelectorAll('.mobi-vm-view'),
toNode = getNodeForView(view),
toIndex = indexOfView(view),
fromNode = getNodeForView(currentView),
fromIndex = indexOfView(currentView);
if (viewHistory.indexOf(view) > -1){
viewHistory.splice(viewHistory.indexOf(view));
}
viewHistory.push(view);
if( toNode && fromNode ){
setTimeout(updateViews, 0, fromNode, toNode, toIndex < fromIndex);
}
else if( toNode ){
toNode.setAttribute('data-selected', 'true');
}
document.getElementById("mobi_vm_selected").value = view;
if( isClientSide() ){
im.resizeAllContainers();
}
else{
jsf.ajax.request(proxyFormId,event,{execute:'@form', render:'@all'});
}

return false;
},



Code:
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ace="http://www.icefaces.org/icefaces/components"
       xmlns:mobi="http://www.icesoft.com/icefaces/mobile/component">
 
     <h:head>
     </h:head>
 
     <h:body>              
         <mobi:viewManager title="Tomato Salsa - Test Automation">
             <mobi:view id="view1" title="Discovered Components">
                 <ace:panel id="dummy" header="test">
                     Blaa-1
                 </ace:panel>
             </mobi:view>
 
             <mobi:view id="view2" title="Documentation">
                 <ace:panel id="dummy2" header="test">
                     Blaa-2
                 </ace:panel>
             </mobi:view>
         </mobi:viewManager>
     </h:body>
 </html>
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team