voyent
icemobile cast error htmlform  XML
Forum Index -> ICEmobile General
Author Message
luposolitario1967

Joined: 04/Oct/2006 00:00:00
Messages: 48
Offline


i will try to developpe a sample application with icemobile
i've downloaded iceface 4.0 and i work with showcase sample
when i run my application this error occured


javax.servlet.ServletException: javax.faces.component.html.HtmlForm cannot be cast to org.icefaces.mobi.component.viewmanager.ViewManager
javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52
[Email]
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi,
It's likely a problem with your page markup. The ViewManager component expects the <mobi:viewManager> tag to be a child of the body element. So you should have something like:

Code:
 <html>
     <h:head>..</h:head>
     <h:body>
         <mobi:viewManager>
              <mobi:view>
                   <h:form>...</h:form>
              </mobi:view>
         </mobi:viewManager>
     </h:body>
 </html>
 

.
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team