This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

facing issue while adding Action attribute to CommandButton  RSS feed

 
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
Boost this thread!