Good day,
I have the problem with EntityHome.persist in simplest .xhtml page.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:t="http://myfaces.apache.org/tomahawk" xml:lang="en" lang="en"> <head> <title></title> <ui:debug hotkey="q"/> </head> <body> <h:form> <h:inputText title="Title" value="#{messageHome.instance.title}"/><br/> <h:inputText title="Content" value="#{messageHome.instance.content}"/><br/> <h:commandButton action="#{messageHome.persist}" /> <h:dataTable var="mes" value="#{allmessages.resultList}"> <h:column> <table> <tr> <td><h:outputText value="#{mes.title}"/></td> <td><h:outputText value="#{mes.content}"/></td> </tr> </table> </h:column> </h:dataTable> </h:form> </body> </html>
<framework:entity-home name="messageHome" entity-class="org.interlogy.ejb.test.Message"/> <framework:entity-query name="allmessages" ejbql="select object(m) from Message m"/>