Are you sure it worked in JBT 3.0 for the same example? I couldn't work there.
This issue https://jira.jboss.org/jira/browse/JBIDE-4758 was supposed to fix this problem. But id didn't. I've created a new one https://jira.jboss.org/jira/browse/JBIDE-6179