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 Whats wrong with <H:FORM> Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Whats wrong with <H:FORM> Tag" Watch "Whats wrong with <H:FORM> Tag" New topic
Author

Whats wrong with <H:FORM> Tag

Abzee AntiPro
Greenhorn

Joined: Aug 23, 2010
Posts: 14

Hi Guys,
I recently migrated my project to jsf 1.2 from jsf 1.1.

everything seems to be fine except the <h:form> tag.

i m getting a tag ~com.sun.faces.saveStateFieldMarker~ on every page having <h:form> tag.

If my page has N number of other JSF components, they are getting rendered absolutely fine.

but the page containing the form tag is having this problem.

not sure what could be the reason?

your help will be appreciated.


Back to the Basics. Thats the only solution.
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 121

Does your form tag has "id" attribute specified?


Sun Certified Java Programmer with 93 percent
Abzee AntiPro
Greenhorn

Joined: Aug 23, 2010
Posts: 14

My form tag had a id attribute with it. Even if we miss one, JSF makes sure its generated before rendering it.
However the issue has been resolved now.

I was using a JspTilesViewHandler class for handling the views and that class was a bit outdated.
I had to rewrite the writeState() method under it.

this method is called before the FORM is closed.

Thanks,
Abid
Amrit pandey
Greenhorn

Joined: Jun 28, 2010
Posts: 19
Abzee,
Can you please post the printstack of the errors/exception you are getting in your console?

Thanks,
Amrit Pandey


Thanks & Regards,
Amrit Pandey
Abzee AntiPro
Greenhorn

Joined: Aug 23, 2010
Posts: 14

I was not getting any error on console. Neither in application logs.
everything was running fine except that small bug on UI
Amrit pandey
Greenhorn

Joined: Jun 28, 2010
Posts: 19
What kind of bug can you please explain so that we can figure out where the problem can be?
 
wood burning stoves
 
subject: Whats wrong with <H:FORM> Tag
 
Similar Threads
Sorting in h:dataTable
Problem with h:panelGroup
Hoto include JSP page in JSF
Not able to see content
In JSF there is no form action