Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

facing issue while adding Action attribute to CommandButton

 
sujai chellappa
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have added a commandButton using UIComponent.I have binded this commandButton to panel grid on JSP page.




The Component is getting added on the JSP Page.
I want a backing bean method to be called on click.I need to set the Action attribute for the command buttonon the backing bean.
I have done that in the way mentioned below :

Iam getting an exception :javax.faces.el.PropertyNotFoundException: Error setting property 'containerComponent' in bean of type CommitUIComponent





Please helpout me wit the solution.

Thanks
Sujai
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have setters and getters for the containerComponent in your managed bean?

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic