Global messages and inilne messages both are being displayed

Hi,
I have a page index.xhtml in which i am including another page header.xhtml like this
<ui:insert name="header">
               <ui:include src="header.xhtml" />
          </ui:insert>
my header.xhtml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html">
<body>
     <div id="header-container">
          <div id="header">
               <div class="left_logo">
                    <h:graphicImage library="images" name="trainings.jpg" width="339"
                         height="120" />
               </div>
               <div id="navigation">
                    <ul>
                         <li id="home-nav">JSF Training</li>
                         <li id="about-nav">About</li>
                    </ul>
               </div>
               <div class="clear"></div>
          </div>
     </div>
</body>
</html>
and index.xhtml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:lang="en">
<body>
<f:view xmlns:c="http://java.sun.com/jstl/core"
     xmlns:s="http://www.springframework.org/tags"
     xmlns:form="http://www.springframework.org/tags/form">
     <h:head>
          <h:outputStylesheet library="css" name="style.css" target="head" />
          <meta http-equiv="content-type" content="text/html; charset=utf-8" />
          <title>#{msgs.welcome}</title>
          <link rel="shortcut icon" href="../resources/images/favicon.ico" />
          <link rel="stylesheet" href="../resources/css/style.css"
               type="text/css" media="all" />
     </h:head>
     <h:body class="home blog">
          <!-- <ui:composition template="baseTemplate.xhtml">
               <ui:define name="content"> -->
          <ui:insert name="header">
               <ui:include src="header.xhtml" />
          </ui:insert>
          <div id="home-training-container">
                         <h:form>
                              <table align="center">
                                   <tr>
                                        <td colspan="2" align="center"><font size="4"><b><h:outputLabel
                                                            value="#{msgs.welcomeTitle}" /></b></font></td>
                                   </tr>
                                   <tr>
                                        <td colspan="2"><font size="4"><b><h:outputLabel
                                                            value="#{msgs.homepageTitle}"></h:outputLabel></b></font></td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.nameLabel}" /></td>
                                        <td><h:inputText binding="#{loginName}"
                                                  value="#{user.loginName}" id="loginName" label="Name"
                                                  required="true" requiredMessage="#{msgs.nameRequired}">
                                                  <f:validateLength minimum="5" maximum="20" />
                                                  <f:validateRegex pattern="#{msgs.regexPattern}"></f:validateRegex>
                                             </h:inputText>
<h:message showSummary="true" showDetail="false"
                                                  for="loginName" errorClass="errors" globalOnly="true"></h:message>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.passwordLabel}" /></td>
                                        <td><h:inputSecret binding="#{password}"
                                                  value="#{user.password}" id="password" required="true"
                                                  requiredMessage="#{msgs.passwordRequired}">
                                                  <f:validateLength minimum="3" maximum="20" />
                                             </h:inputSecret>
<h:message showSummary="true" showDetail="false"
                                                  for="password" errorClass="errors"></h:message>
                                             <!-- <h:message for="loginValid" errorClass="errors" globalOnly="true"></h:message> -->
                                        </td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.roleLabel}" /></td>
                                        <td><h:selectOneMenu value="#{user.role}">
                                                  <f:selectItem itemValue="#{msgs.admin}"
                                                       itemLabel="#{msgs.admin}" />
                                                  <f:selectItem itemValue="#{msgs.guest}"
                                                       itemLabel="#{msgs.guest}" />
                                             </h:selectOneMenu></td>
                                   </tr>
                                   <tr>
                                        <td colspan="2" align="left"><h:commandButton
                                                  value="#{msgs.login}" action="#{user.login}"></h:commandButton>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td colspan="2" align="right"><h:commandButton
                                                  value="#{msgs.registerNewUser}" action="#{user.addNewUser}"
                                                  immediate="true">
                                             </h:commandButton></td>
                                   </tr>
                              </table>
                         </h:form>
                    </div>
                    <ui:insert name="footer">
          <ui:include src="footer.xhtml"/>
     </ui:insert>          
     </h:body>
</f:view>
</body>
</html>
if an error occur then currently it is displaying below the text box and also at the top which should not happen. I want to show messages only below the corresponding text boxes.
how can i do it?
if i remove namespace declaration in header.xhtml like this
<div id="header-container">
          <div id="header">
               <div class="left_logo">
                    <h:graphicImage library="images" name="trainings.jpg" width="339"
                         height="120" />
                         <h:messages rendered="false" globalOnly="true" layout="table"/>
               </div>
               <div id="navigation">
                    <ul>
                         <li id="home-nav">JSF Training</li>
                         <li id="about-nav">About</li>
                    </ul>
               </div>
               <div class="clear"></div>
          </div>
     </div>
then top messages are not displayed but a warning message displayed
"Warning: This page calls for XML namespace declared with prefix div but no taglibrary exists for that namespace"
Please help me...
Edited by: 931725 on May 31, 2012 1:46 AM

i have made lot effort over this, but could not find the solution.. :|
index.html is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:lang="en">
<body>
<f:view xmlns:c="http://java.sun.com/jstl/core"
     xmlns:s="http://www.springframework.org/tags"
     xmlns:form="http://www.springframework.org/tags/form">     
     <h:head>
          <h:outputStylesheet library="css" name="style.css" target="head" />
          <meta http-equiv="content-type" content="text/html; charset=utf-8" />
          <title>#{msgs.welcome}</title>
          <link rel="shortcut icon" href="../resources/images/favicon.ico" />
          <link rel="stylesheet" href="../resources/css/style.css"
               type="text/css" media="all" />
     </h:head>
     <h:body class="home blog">
             <ui:insert name="header">
               <ui:include src="header.xhtml" />
          </ui:insert>
          <div id="home-training-container">
                         <h:form>
                              <table align="center">
                                   <tr>
                                        <td colspan="2" align="center"><font size="4"><b><h:outputLabel
                                                            value="#{msgs.welcomeTitle}" /></b></font></td>
                                   </tr>
                                   <tr>
                                        <td colspan="2"><font size="4"><b><h:outputLabel
                                                            value="#{msgs.homepageTitle}"></h:outputLabel></b></font></td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.nameLabel}" /></td>
                                        <td><h:inputText binding="#{loginName}"
                                                  value="#{user.loginName}" id="loginName" label="Name"
                                                  required="true" requiredMessage="#{msgs.nameRequired}">
                                                  <f:validateLength minimum="5" maximum="20" />
                                                  <f:validateRegex pattern="#{msgs.regexPattern}"></f:validateRegex>
                                                  <br />
                                             </h:inputText><br /> <h:message showSummary="true" showDetail="false"
                                                  for="loginName" errorClass="errors" globalOnly="true"></h:message>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.passwordLabel}" /></td>
                                        <td><h:inputSecret binding="#{password}"
                                                  value="#{user.password}" id="password" required="true"
                                                  requiredMessage="#{msgs.passwordRequired}">
                                                  <f:validateLength minimum="3" maximum="20" />
                                             </h:inputSecret><br /><h:message showSummary="true" showDetail="false"
                                                  for="password" errorClass="errors"></h:message>
                                             <!-- <h:message for="loginValid" errorClass="errors" globalOnly="true"></h:message> -->
                                        </td>
                                   </tr>
                                   <tr>
                                        <td><h:outputLabel value="#{msgs.roleLabel}" /></td>
                                        <td><h:selectOneMenu value="#{user.role}">
                                                  <f:selectItem itemValue="#{msgs.admin}"
                                                       itemLabel="#{msgs.admin}" />
                                                  <f:selectItem itemValue="#{msgs.guest}"
                                                       itemLabel="#{msgs.guest}" />
                                             </h:selectOneMenu></td>
                                   </tr>
                                   <tr>
                                        <td colspan="2" align="left"><h:commandButton
                                                  value="#{msgs.login}" action="#{user.login}"></h:commandButton>
                                        </td>
                                   </tr>
                                   <tr>
                                        <td colspan="2" align="right"><h:commandButton
                                                  value="#{msgs.registerNewUser}" action="#{user.addNewUser}"
                                                  immediate="true">
                                             </h:commandButton></td>
                                   </tr>
                              </table>
                         </h:form>
                    </div>
                     <ui:insert name="footer">
                                <ui:include src="footer.xhtml"/>
                             </ui:insert>          
     </h:body>
</f:view>
</body>
</html>header.xhtml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html">
<body>
     <div id="header-container">
          <div id="header">
               <div class="left_logo">
                    <h:graphicImage library="images" name="trainings.jpg" width="339"
                         height="120" />
               </div>
               <div id="navigation">
                    <ul>
                         <li id="home-nav"><a href="#">JSF Training</a></li>
                         <li id="about-nav"><a href="#">About</a></li>
                    </ul>
               </div>
               <div class="clear"></div>
          </div>
     </div>
</body>
</html>

Similar Messages

  • I cannot shu down my iMac (for days) as I get the following message:Photos are being imported to the photo library.  Now as far as I know there are no photos being imported and even if there were 5 days is crazy.  How can I resolve this please?

    I cannot shut down my iMac (for days now) as I get the following message: "Photos are being imported to the photo library."
    Now as far as I know there are no photos being imported and even if there were 5 days is crazy.  How can I resolve this please?
    JLB284

    Open Activity monitor in Utilities, go to the CPU tab>All Processes, and note any process that would appear to be related to importing photos, such as iPhoto, and use Force Quit. This may only be a temporary fix, as it may start all over again when you reboot. If that happens, we need to do some more investigating.
    Also, close all open Applications, then open Terminal in Utilities and copy/paste and hit return, then post the output of this command.
    lsof -l +L -R -V | grep /

  • I think somebody is hacking my visiting websites and ip address.Some sites are not opening.When I am trying to open mozilla 1 message box is being displayed stating that one firefox is being opened and not responding first close it & restart the system.

    At present 2 websites are not opening. When I am trying to open these sites either "problem loading page or the website you are looking is not present". These two messages are being displayed.

    Try clearing your browser cache.
    Tools > Clear Recent History... - hit Details and make sure only Cache is selected, then select Everything and hit the Clear Now button.

  • When my wife receives a call and her screen is locked she gets two choices. Remind me and answer. When I get a call, I get 3 buttons. Remind me, message and answer. Both are iPhone 4S with ios7.

    When my wife receives a call and her screen is locked she gets two choices. Remind me and answer. When I get a call, I get 3 buttons. Remind me, message and answer. Both are iPhone 4S with ios7. Is there some setting to fix this? I thought the phones were set up identically.
    Thanks.

    Glad it helped. I only remembered it was there because I'd just been checking something else in that screen.
    Best of luck.

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

  • HT5622 I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as

    I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as well

    Yes, you stop using the same Apple ID under Settings > iCloud.

  • Since updating to ios 6 messages that are being sent to me are also coming through on my husbands phone. how do i stop this from happening?

    since updating my iphone 4s with ios6 messages that are being sent to me are also being sent to my husbands iphone4. how do I stop this from happening?

    Do you have separate apple Ids? If not, set up a new Id for one of you. Ios 6 uses the apple Id to send messages across devices, that may be the issue you are having.

  • HT201359 Why the ISTORE of Malta is not up to date with the latest movies and series like the UK & USA and why old movies are being uploaded .

    Why the ISTORE of Malta is not up to date with the latest movies and series like the UK &amp; USA and why old movies are being uploaded .
    I believe the apple should be universal in all the products and a small island like Malts should have the same products for sale on ISTORE like of the UK and USA.

    The iTunes and App stores are inherently different in different countries.  Local laws on copyright and other limits on the distribution of intellectual property make it impossible for Apple to simply put everything in every store.  Sometimes, the owner of the intellectual property does not allow it to be distributed everywhere.  Keep in mind that Apple does not own the music, books, movies and such that they allow for sale in their store front, so they do not necessarily have any say in what may, or may not appear in what store.

  • In Mountain Lion how does OS select between ethernet and WiFi when both are activated??

    In Mountain Lion how does OS select between ethernet and WiFi when both are activated??  How does OS use "both" networl accesses??

    It will pick the highest service in the list which has an internet connection.
    To order the list, open Network System Preferences and select Set order of network services from the button below the service list.

  • Need to access my photos on my broken iphone 5.  Downloaded icloud on my pc and it is only recognising my ipad, but even at that no photos are being displayed.

    need to access my photos on my broken iphone 5.  Downloaded icloud on my pc and it is only recognising my ipad, but even at that no photos are being displayed.

    Hi Ingo2711, Thanks a million for your reply.  That's probably what it is.  Now next thing, my iphone will not switch on at all.  No water damage or physical damage.  I brought to an irepair place and he was first able to see the photos on my phone somehow but when I brought it back to get fixed he couldn't.  I have been told by a few people that it may just be the charge port or battery or unfortunately the logic/motherboard.  What is my best bet? I'm not able to afford to get it officially fixed if it can be. Any recommendations?  By the way, thanks a million.

  • My iPhone 5s and husband 5s both are unable to make or receive calls just comes up fail

    My iPhone 5s and husband 5s both are unable to make or receive calls just comes up fail, dosen't even ring,I rang EE and got no where
    seems weird both 5s stopped working at same time

    If your iPhone works elsewhere without problems, then it's probable that your carrier's signal just isn't strong enough in your home. This is not an uncommon situation, since many communities balk at allowing cell carriers to place their towers in residential areas. If you have good Internet service in your house, you might ask EE if they can provide a "microcell" which would connect to your Internet connection and provide a stronger cell signal.
    Regards.

  • I feel that Apple. mac. Safari is selling out available Space on every search, and, or, we consumers are being saturated with junk mail. can't block it can't stop it from happening. Help

    I feel that Apple. mac. Safari is selling out available Space on every search, and, or
    we consumers are being saturated with junk mail. can't block it can't stop it from happening. Help

    You can use junk mail filters but setting the criteria can be a problem.
    A very good tool for blocking adware is available from Thomas Reed's site http://www.thesafemac.com Thomas is a regular contributor on ASC and a good helper.

  • I just upgraded to 5.0.1 and Google+ and Mozilla homepage both are telling me my browser is out of date. What is going on?

    I just upgraded to 5.0.1 and Google+ and Mozilla homepage both are telling me my browser is out of date. What is going on?

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 FBSMTWB
    Your UserAgent is wrong for Firefox 5.0.1 .
    See this for this fix: <br />
    https://support.mozilla.com/en-US/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser

  • Math characters are being displayed incorrectly in a webpage. eg. Þ is being displayed instead of what I think should be ⇒

    I am using Firefox 24.0 in Linux Mint.
    I am currently doing a math test. Incorrect characters are being displayed.
    There are only true/false questions on this math test. The questions on it are supposed to be very easy basic algebra questions, but because the characters are not loading properly, I cannot tell what they are.
    A few examples from the test:
    Are the following statements true or false:
    |-7|=Ö49=7
    Ö8-Ö29=Ö(-21)
    Ö8-Ö29=-Ö21
    3x=6 Þ x=2
    (x-2)(x+2) = 1 Þ x-2 = 1 or x+2 = 1
    Based on how they are being used, I assume Ö should be a √, and that Þ should be a | or ⇒
    What is happening here? How do I fix this?
    Are my guesses correct?

    What font is specified if you check that via the right-click context menu in the built-in Inspector?
    Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

  • I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    I have just updated to ISO 8 and my app icons are not displaying the correct icon but just a generic icon. Anyone had a similar problem?

    That happened to me for a short period of time after I updated. It didn't do it with all apps, but it did it with a few here and there. Try a few basic standard troubleshooting steps. Close all apps and reset the iPad.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You can also try resetting all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.
    Hopefully it will be something simple, but don't rule out restoring the iOS software, if nothing else works, but start with this easy stuff first.

Maybe you are looking for