wood burning stoves
The moose likes JSF and the fly likes problem with commandButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with commandButton" Watch "problem with commandButton" New topic

problem with commandButton

fatih soylemez

Joined: May 12, 2009
Posts: 9
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

Joined: Aug 26, 2006
Posts: 4968

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

Joined: May 12, 2009
Posts: 9
That worked,thank you for the quick answer!
I agree. Here's the link: http://aspose.com/file-tools
subject: problem with commandButton
It's not a secret anymore!