Skip to main content

JSF CompositeComponent: PropertyNotFoundException when bean throw Exception

1 reply [Last post]
jorgenpfalk
Offline
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?

See http://stackoverflow.com/questions/3487489/jsf2-composite-component-acti...
for further information and example

Reply viewing options

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