0 Replies Latest reply on Jun 14, 2016 5:23 AM by alainpannetier2

    Template: <ui:insert> Attribute 'src', 'file' or 'page' is require

    alainpannetier2

      Got a weird one in AS 7.2.2:


      As far as I know ui:insert supports only `name` attribute.

      javax.servlet.ServletException: /WEB-INF/template.xhtml @10,38 <ui:insert> Attribute 'src', 'file' or 'page' is required

       

      I suspect some namespace confusion but can't see further than that.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:p="http://primefaces.org/ui"
            xmlns:f="http://xmlns.jcp.org/jsf/core"
            xmlns:ui="http://xmlns.jcp.org/jsf/facelets">

       

          <h:head>
            <title><ui:insert name="title">My beautiful webapp</ui:insert></title>