aspose file tools*
The moose likes JSF and the fly likes facing issue while adding Action attribute to CommandButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "facing issue while adding Action attribute to CommandButton" Watch "facing issue while adding Action attribute to CommandButton" New topic
Author

facing issue while adding Action attribute to CommandButton

sujai chellappa
Greenhorn

Joined: May 15, 2009
Posts: 9
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

Joined: Aug 26, 2006
Posts: 4968
    
    1

Do you have setters and getters for the containerComponent in your managed bean?

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: facing issue while adding Action attribute to CommandButton