Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Throwing an error when nesting forms #181
Nesting forms is illegal in both html or JSF. The problem is that the behaviour is unpredictable and is rather hard to see that an ajax error is produced by this mistake. I think it would be good if omnifaces could throw an error when nesting forms (or throw an error in development and log an error in production, or at least log an error).
Due to our inexperience with JSF we started with a form in the template and we are now migrating it but from time to time sometimes someone nests 2 forms and we realize a few days later...
Sorry for the delay, couldn't test it. Application does not boot on tomee 7.0.1 since 2.5-SNAPSHOT (it does boot with 2.4).
This is a trace of an empty webapp only with omnifaces 2.5-SNAPSHOT jar:
Caused by: java.lang.IllegalStateException: CDI BeanManager instance is not available in this environment.
I'll try to see what is wrong here, since minimum requirements should be met with tomee 7.0.1