Hello Peter,
   It seems that the page is not being correctly rendered....

This is the code for the "template.xhtml"

  | 
  | <?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:ui="http://java.sun.com/jsf/facelets";
  |       xmlns:h="http://java.sun.com/jsf/html";
  |       xmlns:f="http://java.sun.com/jsf/core";>
  | <head>
  |     <f:loadBundle basename="messages" var="msgs" />     
  |     <f:loadBundle basename="settings" var="settings" />         
  |     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" 
/>
  |     <title></title>
  | 
  | <style type="text/css" media="all">
  |     @import "style/default/screen.css";
  | </style>
  | 
  | </head>
  | 
  | <body id="pgMainMenu">
  |     
  |     <f:loadBundle basename="messages" var="msg"/>
  |     
  |     <div id="document"> 
  |             <ui:insert name="banner">
  |         <div id="header"><span>#{msg.BannerText}</span></div>
  |         </ui:insert>
  |         
  | 
  |             <ui:insert name="topnav">
  |             <div id="nav"> 
  |                             <ui:include src="/menu.xhtml" />
  |                  </div>
  |             </ui:insert>
  | 
  | 
  |      <div id="container">
  |           <ui:insert name="container">     
  |                                Body Content Should go here .... 
  |            </ui:insert>
  |     </div>
  |     
  |       <div id="footer">
  |           <ui:insert name="footer">     
  |           <hr/>
  |                             #{msg.FooterText}
  |            </ui:insert>
  | 
  |       </div>
  |     
  |   </div>
  |   
  | 
  |       
  | </body>
  | </html>
  | 
  | 
  | 




Below is the code for the login.html


  | 
  | <!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:s="http://jboss.com/products/seam/taglib";
  |     xmlns:ui="http://java.sun.com/jsf/facelets";
  |     xmlns:f="http://java.sun.com/jsf/core";
  |     xmlns:h="http://java.sun.com/jsf/html";
  |     xmlns:si="http://sourceforge.net/projects/easysi";
  |     xmlns:t="http://myfaces.apache.org/tomahawk";>
  | 
  | <body>
  | 
  | <ui:composition template="template.xhtml">
  | 
  |     
  |     <ui:define name="topnav">
  |     
  |     </ui:define>
  |     
  |     <ui:define name="container">
  | 
  |     <f:loadBundle basename="Login" var="LoginBundle" />     
  | 
  |     <div class="formContainer">
  |     
  |     <form action="j_security_check" method="post">
  |       <label for="j_username">#{messages['Username']}</label>
  |       <input type="text" name="j_username" />
  |       <br />
  |       <label for="j_password">#{messages['Password']}</label>
  |       <input type="password" name="j_password" />
  |       <br />
  |       <input type="submit" value="#{messages['LoginButton']}" id="Submit" />
  |    </form>
  | 
  | 
  |     </div>
  |             
  | 
  | 
  | 
  |     </ui:define>
  | 
  | </ui:composition>
  | </body>
  | </html>
  | 
  | 
  | 
  | 
  | 




But neither is the resource bundle working nor is the page correctly rendered. 
I only get a plain HTML page with the username and password controls !!

Is there anything wrong in my template or xhtml file ??


Thnx fore helping !! 


Regards,
Jankee Yogesh
http://www.m-itc.net

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985418#3985418

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985418
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to