This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with commandButton

 
fatih soylemez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,as a person who is new to jsf world,i am dealing with an issue that is probably very simple.

There appears a warning beside my commandButton creation ,telling

"Tag h:commandButton is missing required parent tag "form" (http://java.sun.com/jsf/html)".


And i guess thats why my button doesnt work.

Here is the code :


Thank you for your answers!
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, I don't think form is good enough. Don't you need it to be h:form?

JSF likes those form tags. I think there's only one or two tags that work without being inside of the h:form tag, with one of those of course being h:form itself.

-Cameron McKenzie
 
fatih soylemez
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That worked,thank you for the quick answer!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic