hi,

when goto main page after login seam-booking examples, running  with jsf 1.2 ri:
you can get some warn messages like this:
"component j_id0 must be enclosed inside a form"

and you can't see logout and setting at top of page.


so check view code from main.xhtml:

  | ...
  | <ui:composition 
  | 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";
  |             template="template.xhtml">
  | ...
  | 

check template.xhtml, and that maybe can be modified like follows:

  | ...
  | <div id="document">
  |     <div id="header">
  |             <div id="title"><img src="img/hdr.title.gif" /></div>
  |             <h:form><!---add h:form here-->
  |             <div id="status">
  |                     Welcome #{user.name}
  |                     | <h:commandLink 
action="password">Settings</h:commandLink>
  |                     | <h:commandLink 
action="#{logout.logout}">Logout</h:commandLink>
  |             </div>
  |             </h:form><!---add h:form end tag here-->
  |     </div>
  | ....
  | 

Regards,

xiangya


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930560


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to