Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to run simple JSF  RSS feed

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is the jsf code






While trying to execute the above code, I am getting error as:
Component submit must be embedded in an form

Am I doing something very silly?

Regards,
Joshua
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the above code embedded in an <f:view> element?
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, below is my complete code



Regards,
Joshua
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put the <f:subview> outside <h:form> , all the jsf tage must be contained in <f:view> or alternately<f:subview>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!