This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: problem with commandButton
It's not a secret anymore!