4

The OmniFaces 2.0 introduced a NoAutoGeneratedIdViewHandler. This is a great feature but surely it should be off for production mode?

Even after reading the docs and source I am not sure if it's development mode only or not. Crossing my fingers :-)

BalusC
  • 992,635
  • 352
  • 3,478
  • 3,452
Karl Kildén
  • 2,305
  • 20
  • 32

1 Answers1

1

It is indeed primarily designed as a development aid.

If you already use it from the beginning on when developing a new JSF webapp, or when it's installed only later and you have tests which cover every single page of the webapp, then it shouldn't harm when run in production as well (i.e. it shouldn't throw the ISE).

I can however imagine that it's an unnecessary overhead to keep checking all component IDs in production stage as they are basically already checked during development stage and don't ever change in production stage. Hence, it has been altered to run in development stage only. It's available as per today's latest snapshot. Documentation will be regenerated later.

BalusC
  • 992,635
  • 352
  • 3,478
  • 3,452