Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whats wrong with <H:FORM> Tag

 
Abzee AntiPro
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
suresh dasari
Ranch Hand
Posts: 121
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your form tag has "id" attribute specified?
 
Abzee AntiPro
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abzee,
Can you please post the printstack of the errors/exception you are getting in your console?

Thanks,
Amrit Pandey
 
Abzee AntiPro
Greenhorn
Posts: 14
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of bug can you please explain so that we can figure out where the problem can be?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic