p:messages not formatted.

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 45
Joined: 16 Oct 2010, 16:17

01 Nov 2010, 12:23

I have been using p:messages in all my facelets pages and works great and displays formatted according to the severity. However, I have a login page that is a standalone jsf page (not facelets). The p:messages in that page appear un-formatted like normal faces message. Not only that, I have included p:messages compoenent at the top, but the messages are displayed in the bottom. Can anyone suggest a remedy for this behaviour. Here is my code.

Code: Select all

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link type="text/css" rel="stylesheet"
        <link href="/donor/resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="/donor/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <p:resources />
        <f:view contentType="text/html">
            <h:form id="f">
                        <p:messages id="msgs" globalOnly="true" redisplay="false" /> 
                        <p:fieldset >
                        ...................more contents not shown.
As you can see I have included message in top part, but it is displayed at the bottom of the screen after all components are displayed. This problem occurs only with one page (loginPage) that is not a part of facelets.


Post Reply
  • Information
  • Who is online

    Users browsing this forum: MarkWinton and 19 guests