0 Replies Latest reply on Jan 20, 2010 11:02 PM by Steven Mayhew

    Default namespace not specified

    Steven Mayhew Newbie

      Hi there,


      I'm having a few issues with some code that won't load up at all, I'm pretty sure that I've got it right because its pretty much a copy job from the seam-booking example - which works perfectly when I run it. I don't know quite why this won't work, any help would be appreciated.


      This is the error that I am getting:


      org.apache.jasper.JasperException: /todo.jsp(40,3) The function findModel must be used with a prefix when a default namespace is not specified
              org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
              org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
              org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
              org.apache.jasper.compiler.Validator$ValidateVisitor$1FVVisitor.visit(Validator.java:1479)
              org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:129)
              org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
              org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:242)
              org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:56)
              org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
              org.apache.jasper.compiler.Validator$ValidateVisitor.validateFunctions(Validator.java:1504)
              org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1141)
              org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
              org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
              org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
              org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
              org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
              org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
              org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
              org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
              org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2415)
              org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
              org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1736)
              org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
              org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
              com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
              com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
              org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:87)
              com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
              com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
              com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      



      And here is my code:


      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                              xmlns:ui="http://java.sun.com/jsf/facelets"
                                      xmlns:h="http://java.sun.com/jsf/html"
                                      xmlns:f="http://java.sun.com/jsf/core"
                                      xmlns:s="http://jboss.com/products/seam/taglib"
                      xmlns:a="http://richfaces.org/a4j">
      <html>
      <head>
      <title>Search Page</title>
      </head>
      <body>
      <h1>View Model</h1> 
      <f:view>
         
         <div><f:facet name="header">  
                      <h:outputText value="Search"/>  
         </f:facet>
         <h:form id="new">
            <div>
               <h:inputText id="description" value="#{todoList.test}" style="width: 400"/>
               <h:commandButton id="create" value="View Model" action="#{todoList.createTodo}"/>
            </div>
         </h:form>
         </div>
         
        
         <a:outputPanel id="searchResults">
         <div>
         <h:outputText value="No Models Found" 
                    rendered="#{models != null and models.rowCount==0}"/>
         
         <h:dataTable value="#{models}" var="model" rendered="#{models.rowCount>0}">
              <h:column>
                      <f:facet name="header">Name: </f:facet>
                              <s:link view="/todo.jsp" action="#{todoList.findModel(model)}" value="#{model}" />
              </h:column>
              </h:dataTable>
              </div>
         </a:outputPanel>
      </f:view>
      </body>
      </html>
      </ui:composition>