1 Reply Latest reply on Apr 24, 2007 7:09 PM by Pete Muir

    Using enhanced EL

    Thomas Barry Newbie

      When selecting an entity from a list (like in the hotel booking example), does the source of the list have to be a DataModel? The following isn't working for me:

      <rich:dataTable id="users" value="#{organizationUsers.resultList}" var="u">
       <f:facet name="footer">
       <s:link value="Add user" action="#{userAdmin.create}"/>
       <f:facet name="header">Last Name</f:facet>
       <h:outputText value="#{u.lastName}"/>
       <f:facet name="header">First Name</f:facet>
       <h:outputText value="#{u.firstName}"/>
       <f:facet name="header">Email</f:facet>
       <h:outputText value="#{u.emailAddress}"/>
       <f:facet name="header">Last Connected</f:facet>
       <h:outputText value="#{u.lastConnected}">
       <f:convertDateTime pattern="MM/dd/yyyy h:mm a" timeZone="#{userTimeZone}"/>
       <f:facet name="header">Action</f:facet>
       <s:link id="editUser" action="#{userAdmin.edit(u)}" value="edit"/>

      The source of the list is:

      public class OrganizationUsers extends EntityQuery {
       SessionPreferences prefs;
       public String getEjbql() {
       return "from SiteUser u where u.organization = #{prefs.currentOrganization}";
       public String getOrder() {
       return "u.lastName, u.firstName";

      And I believe things are properly configured in faces-config.xml to enable enhanced EL:

       <!-- Select one of the standard transaction models for the Seam application -->

      A null value is passed to userAdmin.edit(). The URLs behind the 'edit' links do not reference a 'DataModelSelection' like they do in the booking example.

      Any ideas?