File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

problem with commandButton

fatih soylemez
Greenhorn

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
Greenhorn

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
 
Similar Threads
Problem after rendering a commandButton
Creating HtmlCommandButton and HtmlForm in a custom tag
A Problem with events
Problem regarding the ValueChangeEvent and the commandButton
J4J Tag Library rendering problems