File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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" (".

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:
subject: problem with commandButton
It's not a secret anymore!