• Post Reply Bookmark Topic Watch Topic
  • New Topic

strange behaviour of myfaces...

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing very strange problem with 'myfaces'.

When I use myfaces 1.1.4, I get the following exception:



But I don't get exception when I use myfaces 1.1.3.

I am able to get rid of the exception after providing 'no argument constructor'.

But why it's behaving like this way???

Please advice.

Thanks a lot.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably because the version of MyFaces you are using requires a no-arg constructor? Technically speaking, all JavaBean classes should have a user defined no-arg constructor if you have an overloaded constructor.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
Probably because the version of MyFaces you are using requires a no-arg constructor? Technically speaking, all JavaBean classes should have a user defined no-arg constructor if you have an overloaded constructor.


Yes, but we didn't provide because it was not needed in 1.1.3. Now, why 1.1.4 should need a no argument constructor for all bean classes???

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!