Thanks for the fast reply.
I'm quite new to JBoss and related things and hope my questions aren't annoying.
The problem isn't related to casting I guess, just in accessing inherited parts.

I use:
rooms = (List<Room>) em.createQuery("from Room").getResultList();


Form the Entity-Manager-Reference about "getResultList()":
A query is usually executed by invoking getResultList(). This method loads the 
resulting instances of the query completly into memory.

This doesn't mean there aren't used proxies. I can't use find here, but what 
can I do?


Thanks
Dennis




In the SFSB I've:
@DataModel
  |  private List<Room> rooms;

and in the Facelet:
<h:dataTable value="#{rooms}" var="theroom" rendered="#{not empty rooms}">
                <h:column>
                        <f:facet name="header">roomNumber</f:facet>
                        #{theroom.roomNumber}
                </h:column>
                <h:column>
                        <f:facet name="header">resourceId</f:facet>
                        #{theroom.resourceId}
                </h:column>
                <h:column>
                        <f:facet name="header">Action</f:facet>
                        <h:commandLink 
action="#{RoomAction.deleteRoom}">delete</h:commandLink>&nbsp;
                        <h:commandLink 
action="#{RoomAction.editRoom}">edit</h:commandLink>
                </h:column>
        </h:dataTable>


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922671#3922671

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922671


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to