In the login page, where are you opening the ui:composition tag? Seems
to be missing right?
 Hope this is the problem,

Cheers,

Bruno

On 31/07/07, Wolf Benz <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> I get this error(@loginPage.xhtml) after my first page(index.xhtml)
> renders correctly - anyone an idea as to the why?
>
>
> "XML Parsing Error: no element found
>
> Location: http://localhost:8080/MeToMa/index.xhtml
>
> Line Number 1, Column 1:"
> (in FF; in other browsers I get just a blank page)
>
> My setup:
>
> template.xhtml:
>
> ...
>
> <body>
>        <f:view>
>           <h:form>
>                <ui:insert name="header">Default Header</ui:insert>
>                <ui:insert name="navigation">Default navigation</ui:insert>
>                <ui:insert name="body">Default Body</ui:insert>
>                <ui:insert name="messages">Default Messages</ui:insert>
>                <ui:insert name="footer">Default Footer</ui:insert>
>       </h:form>
>        </f:view>
> </body>
> </html>
>
>
> index.xhtml (rendering OK)
>
>        <body>
>        <ui:composition template="/WEB-INF/resources/pages/template.xhtml">
>        <ui:define name="navigation">
>        <ui:include src="/WEB-INF/resources/pages/menu.xhtml"/>
>        </ui:define>
>        </ui:composition>
>        </body>
>
>
> with menu.xhtml (rendering OK)
>
>  <ui:composition>
>        <h3>UC Picker</h3>
>        <hr/>
>        <h:panelGrid columns="1">
>           <h:commandLink value="Home" action="loginPage" />
>           <h:commandLink value="Page1" action="page1" />
>           <h:commandLink value="page2" action="page2" />
>        </h:panelGrid>
>    </ui:composition>
>
>
> and loginPage(giving me the error)
>
> ...
>
>        <body>
>                <ui:define name="header">
>                LoginPage  title
>                </ui:define>
>                <ui:define name="body">
>                        This is clear text: Hello everyone.
>                        <h1>This is a html tag </h1>
>                <h:outputText value="This is a string from an outputText" />
>        </ui:define>
>        </ui:composition>
>        </body>
> </html>
>

Reply via email to