Most likely, it's because you are using EL expressions for your table name and its references.
Most JSF attributes can be given values that are EL expressions. The "id" attribute is an exception. An id must be a simple identifier, such as "mytable".
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.