[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1287) Enable support for DataModelSelection when used with entiy-query
Brian Smith (JIRA)
jira-events at lists.jboss.org
Wed May 2 14:35:30 EDT 2007
Enable support for DataModelSelection when used with entiy-query
----------------------------------------------------------------
Key: JBSEAM-1287
URL: http://jira.jboss.com/jira/browse/JBSEAM-1287
Project: JBoss Seam
Issue Type: Feature Request
Components: Framework
Reporter: Brian Smith
It would be nice to be able to match up a DataModelSelection with a DataModel that is provided by an entity-query. As of now a deployment error is thrown.
Use Case: If a data table is driven by an entity-query, the only way currently to select a row is by passing the var using the Extended EL Seam provides. The extended EL is not compatible with some component libraries (Trinidad) and it is very ugly to go through component bindings to get the current value of the selected row. It would be nice to hook a DataModelSelection to the entity-query.
Something like this
-components.xml-
<framework:entity-query name="allUsers"
ejbql="select u from User u"/>
-facelets page-
[code]
<tr:table id="user_table" value="#{allUsers}" var="user">
<tr:column id="user_column">
<f:facet name="header">
<tr:outputText id="user_header" value="Customer"/>
</f:facet>
<tr:commandLink id="user_link" text="#{useruserName}" actionListener="#{attachUser.done}"/>
</tr:column>
</tr:table>[
/code]
-Seam Bean-
@DataModelSelection("allUsers")
List <User> userList;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list