wood burning stoves 2.0*
The moose likes JSF and the fly likes Edit Boxes etc. Not Displaying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Edit Boxes etc. Not Displaying" Watch "Edit Boxes etc. Not Displaying" New topic
Author

Edit Boxes etc. Not Displaying

Vince Kennedy
Greenhorn

Joined: Aug 26, 2009
Posts: 20
I'm working through a JSF Tutorial (JavaServer Faces 2.0 The Complete Reference), and I created an xhtml file and it's running on Tomcat 6.0

When I pull up the page the text will display but none of the edit boxes, radio buttons, buttons etc will display. If I highlight it, it seems like table is being formatted just nothing displaying. In the file I get this error:
Multiple Annotations on this line:
The content of element type must match "(head, body)"
Attribute "xmlns:h" must be declared for element type html
Attribute "xmlns:f" must be declared for element type html


This is the xhtml file, I clipped some of the inner code to shorten it, but it's all pretty much the same.



Has anyone seen this before? There are no errors on the console from the server, just no display.
Vince Kennedy
Greenhorn

Joined: Aug 26, 2009
Posts: 20
Well if I remove some of the 'extra' stuff and just do



instead of



The box will appear. It doesn't like the <h: /> tags for some reason. I'm sure it's related to the error message up top, which disappears if I delete the definitions. I'm pretty lost on it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Edit Boxes etc. Not Displaying
 
Similar Threads
Bean value not maintained in RequestScoped
JSF tags not rendering in .xhtml file but render in .jsp
Error
Issue with my webApp
Object as a parameter