Skip to main content

JSF CompositeComponent: PropertyNotFoundException when bean throw Exception

1 reply [Last post]
Joined: 2005-10-07

If you have a JSF Composite Component that has an action method attribute, like this:



and calling this component from a page like:

All works as fine until the Bean.submit() method throws an exception (like IllegalArgumentException). JSF would then not evaluate the #{bean.submit} expression and report a very confusing PropertyNotFoundException. If you "inline" the command button in the page and not use the tag:

you'll get the expected IllegalArgumentException. We really need the IEA and not PNFE for our error reporting to work.

Is this a bug or a feature?

for further information and example

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-02-01